Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How can I display a unique array if it contains some repeated elements

by dvergin (Monsignor)
on Apr 28, 2001 at 10:10 UTC ( [id://76354]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @ary = qw(a b c d d e b d);
    my %hsh;
    undef @hsh{@ary};
    my @ary2 = keys %hsh;
    print "@ary2\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-09-10 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.