Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Non-destructive substitution?by epoptai (Curate) |
on Jul 03, 2001 at 01:17 UTC ( [id://93328]=note: print w/replies, xml ) | Need Help?? |
There is a cleaner way, but you still need the temporary
variable to preserve $string. I assume you need $string
later which is the only reason you'd need a
non-destructive substitution. You can declare and
substitute in one step:
--
In Section
Seekers of Perl Wisdom
|
|