in reply to Re: regex "o" modifier
in thread regex "o" modifier
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: regex "o" modifier
by edoc (Chaplain) on May 07, 2003 at 01:14 UTC | |
by diotalevi (Canon) on May 07, 2003 at 04:18 UTC | |
by edoc (Chaplain) on May 07, 2003 at 05:53 UTC | |
by Aristotle (Chancellor) on May 07, 2003 at 06:07 UTC | |
by edoc (Chaplain) on May 07, 2003 at 06:28 UTC | |
|
Re: Re: Re: regex "o" modifier
by Anonymous Monk on May 06, 2003 at 23:29 UTC | |
by Popcorn Dave (Abbot) on May 07, 2003 at 03:52 UTC | |
by edoc (Chaplain) on May 07, 2003 at 06:07 UTC |