Help for this page

Select Code to Download


  1. or download this
    @l = qw( a b c );
    
    ...
    @m =  grep { /a/ and $_ = 'z' } @l;
    
    print @l;
    
  2. or download this
    /a/ and $_ = 'z' for @l;