equant has asked for the wisdom of the Perl Monks concerning the following question:
Thanks, Nathanmy $word = "Apple"; my $pattern = "qr/^(Orange| Apple| Grape| Halibut)$/ix"; print "qr// Match\n" if ($word =~ m/$pattern/); print "non qr// Match\n" if ($word =~ m/^(Orange| Apple| Grape| Halibut)$/ix);
20050204 Edit by castaway: Changed title from 'qr//'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re Why doesn't my qr// work?
by Tanktalus (Canon) on Feb 03, 2005 at 21:49 UTC | |
|
Re: Why doesn't my qr// work?
by crashtest (Curate) on Feb 03, 2005 at 23:56 UTC |