At 10:33 +0000 13/10/11, Hamann, T.D. (Thomas) wrote:

...So I need something that does the equivalent of "Don't match this AND don't match this". Is this possible in a if loop, or should I use something else?

for (qw (bcd 1num ASDSF two)){
  print "$_\n" if !/^[0-9]/ and !/^[A-Z]+/;
}

JD


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to