Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    @match = grep { length } map { $1 if /(2)/ } 0..9;
    print scalar @match, "\n"; # is 1
    
  2. or download this
    my ($val) = map { /^\*\s\(?([^\)]+)\)?/ } @GET_STRING;
    
  3. or download this
    my $val;
    for (0..9) {
    ...
            last;
        }
    }