Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 dust plays in a shaft of sunlight...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2017-04-23 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (431 votes). Check out past polls.