y2k - A simple module to detect y2k bugs
use y2k; $year = (localtime)[5]; print "19$year is a good year to die";
Most Y2k bugs written in Perl are typically very easy to catch. This module catches them. The idea is simple, it provides its own loaded versions of localtime() and gmtime() which return trick years. If this year is used in a manner which is not "cross-decade compliant", your program will die with an error.
This is a thin legacy wrapper around D'oh::Year. Use that instead.
D'oh::Year
Michael G Schwern <schwern@pobox.com>
To install y2k, copy and paste the appropriate command in to your terminal.
cpanm
cpanm y2k
CPAN shell
perl -MCPAN -e shell install y2k
For more information on module installation, please visit the detailed CPAN module installation guide.