Welcome to the Monastery | |
PerlMonks |
Re: multiple (different) substitutions on same $fooby esh (Pilgrim) |
on Aug 22, 2003 at 05:07 UTC ( [id://285670]=note: print w/replies, xml ) | Need Help?? |
I don't know if it is a good idea or not, but yes, it is possible.
Explanation: This is equivalent to the following where the default and magic $_ variable is implicit in several locations:
Another magic thing going on here is that the $_ is aliased to the value(s) in the list so that the substitutions are actually modifying $foo. -- Eric Hammond
In Section
Seekers of Perl Wisdom
|
|