[Israel.pm] catching $a, $b unnecessary my and maybe other things

Yuval Yaari yuval at windax.com
Sun Jun 6 23:22:07 PDT 2004

> BTW, if we speak about this example, of course you may use something
> like the following starting with perl 5.004:
> 	my (undef, undef, undef, undef, $mday, $mon) = localtime();

Kind of off-topic, can't you use something like this:
my ($mday, $mon) = (localtime())[4 .. 5]; # ?

I'll check later.


More information about the Perl mailing list