Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Given When Syntax

by Bloodnok (Vicar)
on Mar 17, 2014 at 14:19 UTC ( #1078601=note: print w/replies, xml ) Need Help??


in reply to Given When Syntax

I have to admit to using the following structure when in need of a switch compatible statement in perl 5.14 and earlier i.e. when feature, as mentioned elsewhere in this discussion, is not available...
SWITCH: { <cond 1> && do { . . last SWITCH; }; <cond 2> && do { . . last SWITCH; }; # default . . }
...and I got this from this very portal :-)

A user level that continues to overstate my experience :-))

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2019-09-19 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (238 votes). Check out past polls.

    Notices?