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?
-- 
Ranga Nathan, Reliance Technology
http://www.any2xml.com 
http://www.adaexplorer.com
http://www.goreliance.com
Download any2xml today - www.goreliance.com/downloads/any2xmlde

Reply via email to