Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: improve ugly flow control

by Aristotle (Chancellor)
on Sep 19, 2004 at 23:08 UTC ( #392254=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -le'for( qw/foo bar baz blah/ ){ print int scalar( /b/ .. // ) 
    +}'
    0
    ...
    1
    1
    0
    
  2. or download this
    $ perl -le'for( qw( foo bar baz quux ), "" ){ print int scalar( /b/ ..
    + /$^/ ) }'
    0
    ...
    1
    2
    3
    
  3. or download this
    log_failure()
        unless grep {
            ( exists $hash{$_} and ( do_something($_), 1 ) )
            .. /$^/
        } @options;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (15)
As of 2015-07-07 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls