more useful options | |
PerlMonks |
Re^3: Challenge - Creative Way To Detect Alpha Charactersby ambrus (Abbot) |
on Sep 14, 2004 at 15:40 UTC ( [id://390880]=note: print w/replies, xml ) | Need Help?? |
No. The isalpha function I gave returns true only for [a-zA-Z] characters, false on numbers, punctation, international letters, or any other character. It seems to give the same results for me than lc ne uc:
outputs
This is because if $p is a non-alnum character in the isalpha function, $p++ converts it to a numeric 0 first, than it increases it to 1, so 0==$p++ is false.
In Section
Seekers of Perl Wisdom
|
|