| Next | Tricks of the Wizards | 149 |
package y2k;
use Carp;
use overload '.' => \&concat,
'0+' => \&to_num,
;
sub import {
my $caller = caller;
*{$caller . '::localtime'} = \&fake_localtime;
*{$caller . '::gmtime' } = \&fake_gmtime;
}
There's that magic glob again.
| Next | ![]() |
Copyright © 2003 M. J. Dominus |