Help for this page

Select Code to Download


  1. or download this
    @results = grep { $_ & 1 } (1 .. 10)
  2. or download this
    my $url = 'http://www.perlmonks.org/';
    my @regexes = ('/private(?:/|$)', 'python');
    if (grep { $url =~ $_ } @regexes) {
    ...
    } else {
      # handle good URL
    }