Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: How do I assign & substitute in one statement?by Roy Johnson (Monsignor) |
on Nov 13, 2004 at 22:22 UTC ( [id://407637]=note: print w/replies, xml ) | Need Help?? |
Predicate-for allows you to declare and modify a lexical in the same statement:
Using block-for does not put the lexical in the surrounding scope. This is an interesting difference, particularly since -MO=Deparse indicates that the above statement is translated into the block form.
In Section
Seekers of Perl Wisdom
|
|