Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: problems with the "switch" module

by pjf (Curate)
on Jul 11, 2006 at 00:29 UTC ( #560279=note: print w/replies, xml ) Need Help??


in reply to problems with the "switch" module

G'day Guy,

Switch uses source-filters in order to make your code do its job. Most of the time it gets it right, but sometimes it will twist the code that reaches the Perl in unexpected ways, and that can make debugging very challenging. If you're getting very strange errors due to using Switch, there's a good chance that the source-filter may have adjusted your code incorrectly.

The good news is that Perl 5.10 (not yet released) has a Switch-style construct that's built into the language. It's called given, and looks very similar to its Perl 6 counterpart. You can find more information in one of the recent development deltas.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://560279]
help
Chatterbox?
[Corion]: I used to cut me on PC cases, but they've gotten better or I don't let blood that easy anymore ;)
[Corion]: You say the girls may strip with your permission, You draw the line dividing art from sin :-D

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-01-16 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.