Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Not getting desire output by using switch statement in Perl

by rammohan (Acolyte)
on Jan 06, 2014 at 12:08 UTC ( #1069498=note: print w/replies, xml ) Need Help??


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 (Pope) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069498]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2016-12-03 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (54 votes). Check out past polls.