But garlic and cheaper than bullets!
use strict; use warnings; sub tst { my $y if 0; # throws "Deprecated use of my() in false c +onditional" => 123 # my $y if shift; # no warning + => 112 print ++$y } tst(1); tst(); tst();
Anything that helps should be used...
Cheers Rolf
In reply to Re^3: A curious case of of my()
by LanX
in thread A curious case of of my()
by fleetingflicker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |