Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^4: How to use select

by virtualsue (Vicar)
on Mar 05, 2005 at 13:35 UTC ( #436895=note: print w/ replies, xml ) Need Help??

in reply to Re^3: How to use select
in thread How to use select

Recently somebody was asking for help in the chatterbox, tearing his hair out over some strange bug. It turned out that the sole cause of the problem was the fact that he had a "use Switch;" statement in his code. He wasn't actually using anything from Switch, he had just neglected to remove the use statement after a failed attempt to get it to DWHW.

I wholeheartedly second your other suggestion for implementing a C-style switch. :-)

FWIW I don't understand why is included in core. It's such an attractive nuisance for those who come from a C/C++ background and miss having a switch construct. The little disclaimer in the "Bugs" section of Switch's pod isn't really enough of a warning.

Comment on Re^4: How to use select

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-10-10 05:36 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (254 votes), past polls