Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: iterating through array and saving matches to new array

by karlgoethebier (Abbot)
on Apr 15, 2018 at 18:33 UTC ( [id://1212941]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1212941]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2024-04-18 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found