Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: reduce like iterators

by furry_marmot (Pilgrim)
on Jan 18, 2011 at 23:52 UTC ( [id://883017]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        @new = map { $p ne $_ ? $p = $_ : () } @orig;
    
  2. or download this
        $p = 'supercalifragilistic';
        @new = map  { $p ne $_ ? $p = $_ : () } @orig;
    
  3. or download this
        use strict;
        sub uniq_adj {
    ...
        print "'", join ("' '", @new), "'\n";
        __END__
        Prints --> '' 'a' 'b' 'c' '0' 'c' 'd' 'u' '0' '"0"' ''0''
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-24 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found