Sorry, this is my first time posting here... let me try that again:
#!/usr/bin/perl $string = $ARGV[0]; for(split(//,$string)) { if(($_ * $_ == 0) && $_ ne '0') { print "alpha: $string\n"; exit(0); } } print "numeric: $string\n";
jkauffman
In reply to Re^2: Challenge - Creative Way To Detect Alpha Characters
by Anonymous Monk
in thread Challenge - Creative Way To Detect Alpha Characters
by Limbic~Region
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |