in reply to isAlpha / isNumeric

More recent Perls (5.6?) support the POSIX [:class:] syntax, you you can do things like this:

if (/^[:alpha:]+/) { print "string is alpha"; } elsif (/^[:digit:]+/) { print "string is digits" } else { print "sting is weird stuff"; }
--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me

Replies are listed 'Best First'.
Re: Re: isAlpha / isNumeric
by Jamnet (Scribe) on Mar 23, 2001 at 11:07 UTC
    Hi davorg,

    Thanks a lot for your support.

    Regards

    Joel