in reply to Re^2: manipulating an array of anonymous arrays ...
in thread manipulating a matrix

grep returns all element for which the code block returns boolean true, so you have to change the code block to return true if the results are not between two values:
my @array = grep { $_->[0] <= $low || $_->[0] >= $high } @array;

Replies are listed 'Best First'.
Re^4: manipulating an array of anonymous arrays ...
by chexmix (Hermit) on Apr 25, 2008 at 16:39 UTC
    Thanks - I worked it out! :D

    It's a small thing, but at my level that's what I have to hold onto.