Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    ..Bxys
    xxAx
    =cut
    
  2. or download this
    #ok, with a weird example of $1
    @result = grep{ print "$1 $_\n" if /^..(A|B)./;
    ...
    
    # grep {} executes the code within the brackets and passes the input
    # to @result depending upon the true/false value of the last statement
    +.