[Omaha.pm] we need a 1 liner

Jay Hannah jay at jays.net
Tue Nov 14 18:21:39 PST 2006


Can anyone tell me what the 1 liner for this is before Andy does?

:)

j


  my @old = @{$self->{pools}};
  my @new;
  foreach (@old) {
     if (@$_ > 0) {
        push @new, $_;
     }
  }
  $self->{pools} = \@new;




More information about the Omaha-pm mailing list