asz has asked for the wisdom of the Perl Monks concerning the following question:
hello,
i recently had to use $', so reading perlvar more carefully, i noticed it warns about using $':
thank you for your time!
:)))))
i recently had to use $', so reading perlvar more carefully, i noticed it warns about using $':
The use of this variable anywhere in a program imposes a considerable performance penalty on all regular expression matches. See "BUGS"....but in the BUGS section it states that:
Due to an unfortunate accident of Perl's implementation, use English imposes a considerable performance penalty on all regular expression matches in a program,[...]now i'm confused :) ... i don't understand wheter use English; (i.e. $POSTMATCH) reduces performance or simply using $'.
thank you for your time!
:)))))
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: use English; and performance
by duff (Parson) on Mar 02, 2006 at 16:04 UTC | |
by asz (Pilgrim) on Mar 02, 2006 at 16:56 UTC | |
by Aristotle (Chancellor) on Mar 03, 2006 at 16:09 UTC | |
Re: use English; and performance
by monkey_boy (Priest) on Mar 02, 2006 at 16:09 UTC | |
by ikegami (Patriarch) on Mar 02, 2006 at 16:15 UTC |
Back to
Seekers of Perl Wisdom