On 03/22/2011 10:14 AM, Justin Mason wrote:
> The use of $_[1] was for performance reasons -- it saves copying the
> function argument to a new reference. However if the latter causes
> bugs, which seems to be the case, then +1 for that patch!
>
> --j.
Forgive my possible perl/code ignorance here, but would something like
this
help with any performance degradation caused by my initial patch:
my $line = \$_[1];
while ($$line =~ '.$pat.'g) {
Or does it amount to more or less the same thing as my original patch?
I'm not completely clear in how perl handles references and didn't
really do anything more than a cursory test on it (which worked).
Matt
--
Matt Elson
[email protected]