Help for this page

Select Code to Download


  1. or download this
    if(not grep { $_->price > 1000 } @product_list) {
        # do stuff
    }
    
  2. or download this
    my @p = (0,2,4,5,2,5,7,7);
    print "1: none\n" if not grep { $_ > 1000 } @p;
    push @p, 1002;
    ...
    
    =output
    1: none