APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get 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

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.