Perl-Sensitive Sunglasses | |
PerlMonks |
Re: How would you simplify this code?by NetWallah (Canon) |
on Apr 07, 2011 at 04:20 UTC ( [id://897929]=note: print w/replies, xml ) | Need Help?? |
Untested:
Just use "$self-><Varname>" instead of the lexically defined var names for the rest of the sub. Syntactic sugar causes cancer of the semicolon. --Alan Perlis
In Section
Seekers of Perl Wisdom
|
|