Help for this page

Select Code to Download


  1. or download this
    for (@items) {
          return 0 unless $self->($_);
    }
    
  2. or download this
    sub filter (&@){
        my $sub = shift;
    ...
    }
    print +( filter {/foo/} qw/foobar foobar bazfoo/ )
        ? 'y' : 'n' , "\n";