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?
[beech]: thank you, it sure is pretty "code", yup, thats what I call it my ...
beech .oO( talking 'bout my ...)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2017-02-28 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (398 votes). Check out past polls.