in reply to Re: How do I write subs that take bare blocks as args?
in thread How do I write subs that take bare blocks as args?
Hey, good idea! Except, to work the same as my example, it needs to be:
if ( ( grep { $_->price <= 1000 } @product_list ) == @product_list ) { # do stuff }
_______________
D a m n D i r t y A p e
Home Node | Email
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How do I write subs that take bare blocks as args?
by Aristotle (Chancellor) on Jun 28, 2002 at 16:03 UTC | |
| |
Re^3: How do I write subs that take bare blocks as args?
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