One could then assign $_ back to $foo or use $_ directly as in print;$_ = $foo; s/frog/toad/g; s/man/boy/; s/woman/girl/;
--traveler
In reply to Re: multiple (different) substitutions on same $foo
by traveler
in thread multiple (different) substitutions on same $foo
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |