Dismas has asked for the wisdom of the Perl Monks concerning the following question:
Is my understanding correct, or does the "o" still help with an actual *expression* inside, e.g.:$pattern = "something"; if ($foo =~ /$pattern/o) { #stuff }
Many thanks,if ($foo =~ /^dis_isa_pattern$/o) { # stuff }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: //o of any help?
by diotalevi (Canon) on Sep 22, 2004 at 15:24 UTC | |
|
Re: /o of any help?
by duff (Parson) on Sep 22, 2004 at 16:00 UTC | |
|
Re: //o of any help?
by davido (Cardinal) on Sep 22, 2004 at 16:11 UTC |