Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: if ... elsif ... else

by shmem (Chancellor)
on Jun 01, 2017 at 10:12 UTC ( [id://1191822]=note: print w/replies, xml ) Need Help??


in reply to Re: if ... elsif ... else
in thread if ... elsif ... else

I would use a statement modifier here

OUTER: foreach my $i ( $from .. $to ) { $i % $_ and next OUTER for 2 .. 5; say $i; }

because it is more like natural language, and because I dislike both one-line-xxx(){...}-loops and multiline loops with just one statement in the loop body.

But that's just a matter of taste or style ;-)

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-28 11:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found