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

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://436895]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2018-03-21 22:53 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (272 votes). Check out past polls.