in reply to Re: A matter of style: how to perform a simple action based on a simple condition?
in thread A matter of style: how to perform a simple action based on a simple condition?
doesn't seem to be the best example to use since it is probably better expressed with a map likeforeach (@ray1) { push @ray2,$_ if ($_<0) }
push @ray2, grep { $_ < 0 } @ray1
|
---|
In Section
Seekers of Perl Wisdom