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 }
In reply to Re: Re: How do I write subs that take bare blocks as args?
by DamnDirtyApe
in thread How do I write subs that take bare blocks as args?
by DamnDirtyApe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |