Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: reduce like iterators

by ELISHEVA (Prior)
on Jan 03, 2011 at 18:27 UTC ( [id://880229]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    # outputs
    a b c a d e undef f g
    
  2. or download this
    sub compress { my$x;map{defined($x)?(defined($_)&&($x eq$_)?():($x=$_)
    +):defined($_)?($x=$_):()}@_;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-25 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found