Perl-Sensitive Sunglasses | |
PerlMonks |
Re: match with exceptionby davis (Vicar) |
on May 19, 2009 at 12:57 UTC ( [id://764908]=note: print w/replies, xml ) | Need Help?? |
I'd be inclined to use the "does not match" feature of !~:
Of course, that assumes a regular expression is the best way of (not) matching your string -- if it's just a simple string, then the perl function index() may be more suitable.
Edit: Changed wording to more accurately reflect test.
davis
In Section
Seekers of Perl Wisdom
|
|