Sullust has asked for the wisdom of the Perl Monks concerning the following question:
Now by all reasonable thinking, the above expression should fail, after all $exclude contains the word pager. Unfortunately it passes quite nicely and does nasty things. However, if $exclude contains$exclude = "middle_name pager zip"; if($exclude !~ m/pager/gi) { #do its thing }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: This is just wonky...
by premchai21 (Curate) on Aug 07, 2001 at 02:03 UTC | |
by Sullust (Acolyte) on Aug 07, 2001 at 03:04 UTC | |
|
Re: This is just wonky...
by aquacade (Scribe) on Aug 07, 2001 at 02:12 UTC |