in reply to Re: Which one is best for optimization
in thread Which one is best for optimization

my @files2del = map { ($hash{$_}->{Size} > $sizelimit ? $_ : () } keys + %hash;

The perlish way to write such a map involves grep ;-) my @files2del = grep { ($hash{$_}->{Size} > $sizelimit  } keys %hash;