--- Ranga Nathan mumbled on 2002-04-25 18.47.20 -0700 --- > I was amused to find that in the following code > $x = " 55"; > $x =~ /^[:space:]/ && print "yes first pos is space"; > does not work but > $x = " 55"; > $x =~ /^[[:space:]]/ && print "yes first pos is space"; > works. > > But the negation does not need the extra [ ]! > $x = " 55"; > $x =~ /^[^:alpha:]/ && print "yes first pos is not-alpha"; > works.... > > Am I missing something or is intended to be this way?
[^:alpha:] => any character that is not ':','a','l','p','h'. It worked for the wrong reason. -- Mike Burns <[EMAIL PROTECTED]> <http://netgeek.ws> "Given the opportunity, some people will make a mess of anything." - Bert Bos
