|
|
| No such thing as a small change | |
| PerlMonks |
Re: Can perl do...?by sean (Beadle) |
| on Jun 04, 2000 at 15:08 UTC ( [id://16296]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
For that first part there:
$foo = ("this $foo" =~ s/a/b/);
If you shuffle the parens around thusly:
($foo = "this $foo") =~ s/a/b/;
It would do what you want.
--sean
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||