If I had the following:
my $regex = qr!yes|no!; my $response = "yes"; print "Not maybe" if $response =~ /$regex/o
Is that a case where the /o would come in to play as that isn't going to change or does the qr compile the regex before the if statement?
Thanks!
There is no emoticon for what I'm feeling now.
In reply to Re: Re: regex "o" modifier
by Popcorn Dave
in thread regex "o" modifier
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |