$version = qr/version:\s+2\.6\.7/
Perl may compile the pattern at the moment of execution of qr() operator, using qr() may have speed advantages in some situations, notably if the result of qr() is used standalone.
Read more about qr from :
http://perldoc.perl.org/perlop.html#Regexp-Quote-Like-Operators
No comments:
Post a Comment