%a = map {$_ => ++$i} a..z; chomp($_ = <STDIN>); exists $a{$_} ? print "$a{$_}\n" : print "Everything else\n";
In reply to Re: Not getting desire output by using switch statement in Perl
by Lennotoecom
in thread Not getting desire output by using switch statement in Perl
by rammohan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |