Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Trudging along the learning perl path. -- wrong path? :=)

by Discipulus (Canon)
on Apr 15, 2017 at 20:33 UTC ( [id://1188019]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @arr = (0,1,2,3,1,2);
    
    ...
              unless($_ ~~ @uniq){push @uniq, $_}
    }
    print join ' ', @uniq;
    
  2. or download this
    use List::Util qw(any);
    my @arr = (0,1,2,3,1,2);
    ...
    }
    print join ' ', @uniq;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-03-29 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found