in reply to Re^2: Not getting desire output by using switch statement in Perlin thread Not getting desire output by using switch statement in Perl
if ($a =~ /[a-z]/) { print ord($a) - 96; } else { print "Everything else"; } [download]