The stupid question is the question not asked | |
PerlMonks |
Non-destructive substitution?by Sprad (Hermit) |
on Jul 03, 2001 at 01:09 UTC ( [id://93324]=perlquestion: print w/replies, xml ) | Need Help?? |
Sprad has asked for the wisdom of the Perl Monks concerning the following question:
I find myself doing things like this a lot: (assuming I want to keep $string unaltered)
Is there a cleaner way to do that, preferably without having to use a temporary variable each time?
---
Back to
Seekers of Perl Wisdom
|
|