3 ms·
D'oh! You're totally right, I forgot the greater than filter in the grep. my @large_orders = sort { $a->{items} <=> $b->{items} } grep { $_->{total} > 100
by kbenson 14y ago
D'oh! You're totally right, I forgot the greater than filter in the grep.
my @large_orders = sort { $a->{items} <=> $b->{items} } grep { $_->{total} > 100 } @orders;
Embarrassing.