Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Confusing syntax error with grep

by gumpu (Friar)
on Aug 12, 2004 at 17:25 UTC ( [id://382386]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      foreach ( @alist ) {
        if ( condition( $_ ) ) {
          do_something( $_ );
        }
      }
    
  2. or download this
       map { condition( $_ ) and do_something( $_ ) } @alist;
    
  3. or download this
       { do_something( $_) } forall ( @alist ) where { condition( $_ ) }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-23 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found