Skip to content

Conversation

@maletin
Copy link
Contributor

@maletin maletin commented May 27, 2016

without /o the regular expressions are less error-prone.
If you really want the regex to be compiled only once, it's better to use a regex object:
my $reg = qr/foo$bar/;

http://stackoverflow.com/questions/550258/does-the-o-modifier-for-perl-regular-expressions-still-provide-any-benefit

@df7cb
Copy link
Collaborator

df7cb commented May 31, 2016

Closed via b91b2bd, thanks!

@df7cb df7cb closed this May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants