Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Confusing syntax error with grep

by gumpu (Friar)
on Aug 12, 2004 at 17:25 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2023-02-06 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (33 votes). Check out past polls.

    Notices?