foreach ( @alist ) { if ( condition( $_ ) ) { do_something( $_ ); } } #### map { condition( $_ ) and do_something( $_ ) } @alist; #### { do_something( $_) } forall ( @alist ) where { condition( $_ ) }