stabu has asked for the wisdom of the Perl Monks concerning the following question:
$acertainvariable =~ s/regex/replacement/g;idiom all following each other in the code. The $acertainvariable doesn't change.
Thank you JavaFan, roboticus and cdarke for your replies. I'm clear about ~= now
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: performance of repeated "$samevareachtime=~ s/etc/etc" idiom
by roboticus (Chancellor) on Feb 25, 2010 at 15:15 UTC | |
|
Re: performance of repeated "$samevareachtime=~ s/etc/etc" idiom
by JavaFan (Canon) on Feb 25, 2010 at 15:08 UTC | |
|
Re: performance of repeated "$samevareachtime=~ s/etc/etc" idiom
by cdarke (Prior) on Feb 25, 2010 at 16:28 UTC |