in reply to Re: Deleting certein elements from an array
in thread Deleting certein elements from an array
Good explanation! However, the original question was to keep the negative elements of the array and thus it should be
@rand = grep { $_ < 0 } @rand;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Deleting certein elements from an array
by haj (Vicar) on Feb 07, 2019 at 13:45 UTC |
In Section
Seekers of Perl Wisdom