if ($a =~ /[a-z]/) { print ord($a) - 96; } else { print "Everything else"; }
In reply to Re^3: Not getting desire output by using switch statement in Perl
by choroba
in thread Not getting desire output by using switch statement in Perl
by rammohan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |