Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Can perl do...?by sean (Beadle) |
on Jun 04, 2000 at 19:08 UTC ( [id://16296]=note: print w/replies, xml ) | Need Help?? |
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
|
|