|
|
| No such thing as a small change | |
| PerlMonks |
Answer: How do I assign & substitute in one statement? |
| ( #407637=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > strings > How do I assign & substitute in one statement? contributed by Roy Johnson
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.
|
|
||||||||||||||||||