in reply to iterating through array and saving matches to new array

A funny alternative:

#!/usr/bin/env perl use strict; use warnings; use Iterator::Simple qw(iter igrep list); use Data::Dump; dd list ( igrep { $_ > 850 } iter([1..1000])); __END__

Please see also Iterator::Simple.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help