in reply to How do I write subs that take bare blocks as args?
Couldn't this be done with a grep?
if (grep {$_->price <= 1000} @product_list) { # do stuff }
--
flounder
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: How do I write subs that take bare blocks as args?
by DamnDirtyApe (Curate) on Jun 28, 2002 at 14:49 UTC | |
by Aristotle (Chancellor) on Jun 28, 2002 at 16:03 UTC | |
| |
by flounder99 (Friar) on Jun 28, 2002 at 15:31 UTC | |
by theorbtwo (Prior) on Jun 28, 2002 at 20:44 UTC |
In Section
Seekers of Perl Wisdom