if ( each_item { $_->price <= 1000 } @product_list ) { #... }