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

Re: Style or Clarity?

by Zaxo (Archbishop)
on Jun 08, 2004 at 21:52 UTC ( #362571=note: print w/replies, xml ) Need Help??


in reply to Style or Clarity?

That sort of logical structure can be recast as a case switch, ala perlsyn,

SWITCH: { $tmp eq 'F' and last SWITCH; $tmp =~ /[MICL]/ and do { # Some things... } , last SWITCH; # do default else thing }
At the expense of comprehensibility, you can omit the last clause from a statement to have processing continue.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2020-10-24 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (242 votes). Check out past polls.

    Notices?