Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Style: buried variables or double referencing?by merlyn (Sage) |
on Aug 20, 2005 at 14:38 UTC ( [id://485386]=note: print w/replies, xml ) | Need Help?? |
Obviously, this is an abstract example, but if you choose meaningful variable names (and not just "count"), I don't see anything wrong no matter what way you do it. If you have to introduce a synthetic variable (something that is meaningful only to work around a programming issue, and doesn't map into the problem space), then be sure to add comments and keep its scope to an absolute minimum.
-- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|