apl logo

A.P. Lawrence

Information and Resources for Unix and Linux Systems
Bloggers and the self-employed
RSS FeedsGet APLawrence.com by RSS




Perl Skills Test

Copyright 2002,2003 A.P. Lawrence

Answers


Answer


Don't provide aliases for regex variables like $&, $` and $'

Although the English module can provide aliases like $PREMATCH, $MATCH, and $POSTMATCH, the documentation warns to use -no-match-vars:

This module can provoke sizeable inefficiencies for regular
expressions, due to unfortunate implementation details. If performance
matters in your application and you don't need $PREMATCH, $MATCH,
or $POSTMATCH [use -no-match-vars]

Comments /Tests/Perl/e0001.html


Add your comments


Next question
Return to Question q0001