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( $_ ) }