in reply to Re: Not getting desire output by using switch statement in Perl
in thread Not getting desire output by using switch statement in Perl

i don't get how it works this script for case. Please could explain your script ... when i execute your script I'm getting this output
Else 5 12 12 15 Else Else 15 18 12 4
. What this output could you please explain this..

Replies are listed 'Best First'.
Re^3: Not getting desire output by using switch statement in Perl
by Corion (Patriarch) on Jan 06, 2014 at 12:18 UTC

    How does the output differ from the output you expect?

    For example, it seems to me that e should map to 5 and l should map to 12 from your problem description.