Next | Tricks of the Wizards | 151 |
package y2k; ... sub to_num { my ($year) = @_; return $year->{YEAR}; }
sub concat { my ($y2k, $s, $rev) = @_; carp("Detected possible Y2K problem"); my $year = sprintf("%02d", $y2k->{YEAR} % 100); $rev ? $s . $year : $year . $s; }
Or use Syslog instead of carp.
Next | Copyright © 2003 M. J. Dominus |