On Sep 9, Gergely Buday said:
while (<STDIN>)
{
if (/^[:alpha:]+$/)
{
print;
}
}
It seems that my perl (5.8.something) does not understand the
[:alpha:] posix syntax.
'[:alpha:]' belongs *in* a character class, it is not a character class.
if (/^[[:alpha:]]+$/) { ... }
--
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
http://www.perlmonks.org/ % have long ago been overpaid?
http://princeton.pm.org/ % -- Meister Eckhart
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>