in reply to Re: Challenge - Creative Way To Detect Alpha Characters
in thread Challenge - Creative Way To Detect Alpha Characters
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Challenge - Creative Way To Detect Alpha Characters
by doowah2004 (Monk) on Sep 14, 2004 at 12:29 UTC |