No such thing as a small change | |
PerlMonks |
Re^2: Programming in Perl without semicolonby ikegami (Patriarch) |
on Jan 31, 2009 at 03:00 UTC ( [id://740371]=note: print w/replies, xml ) | Need Help?? |
Yuck! Use use vars.
Bonus: Doesn't confine you to the main namespace! Now if we could only localize variables, we wouldn't need to manage our own stack.
Bonus: Don't have to use use vars except for globals! By the way, the body simplifies down to a single expression, and your cache initialiser is not needed.
Update: Replaced buggy
In Section
Cool Uses for Perl
|
|