Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Not Use Switch - Re: Re^6: No braces

by metadoktor (Hermit)
on Feb 11, 2004 at 18:58 UTC ( #328337=note: print w/replies, xml ) Need Help??

in reply to Re^6: No braces
in thread No braces

"Damian's relies on source filtering, which means that unless it can parse Perl perfectly (ha ha!), you'll get bugs in portions of code that having nothing to do with switches just because you included use Switch; in your code. So it shouldn't be used in any practical code."

This is true. I naively tried to use Switch once upon a time, because I like that construct, in some software that I was writing and it seriously broke my code. I had obscure error messages that were nearly impossible to debug until I realized that Switch was the culprit.

I agree. Don't use Switch unless you want to court devious Perl bugs.


"The doktor is in."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://328337]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2019-07-16 19:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found