Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 contemplating the Monastery: (5)
As of 2014-09-21 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (173 votes), past polls