Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by Discipulus (Abbot)
on Apr 15, 2017 at 20:33 UTC ( #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
Node Status?
node history
Node Type: note [id://1188019]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2019-05-22 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (140 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!