XP is just a number | |
PerlMonks |
variable processing and checking in one statementby saunderson (Novice) |
on Aug 06, 2012 at 22:09 UTC ( [id://985846]=perlquestion: print w/replies, xml ) | Need Help?? |
saunderson has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
i wonder whether it's possible to simplify constructs like further, such that i have to write the variable ($test) only once!? I often have to deal with such statements and i just don't want to use perl's default variable, so that it yields since $_ is often used by other statements in the same block. How would you monks do it the neat way? best regards
Back to
Seekers of Perl Wisdom
|
|