nope, you dont need to escape that... reason for that is logical, but maybe
not consistent...
see, . is already a character class of it's own, holding 'everything'. So if
you put that in ANOTHER character class, that would kind of beat the purpose
of making a new class in the first place... so Perl just assumes you mean a
simple dot.
try the following, and you'll see what i mean:
$_ = 33.33;
print /([\d.]+)/;
# will print 33.33
regards,
Jos Boumans
> Shouldn't you escape the decimal point in the matching expression too...
> ie my($val) = $line =~ /=\s*([\d\.]+])$/;
--
to unsubscribe: send mail to [EMAIL PROTECTED]
or <http://learn.perl.org/>