Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Syntax explanation required

by eyepopslikeamosquito (Chancellor)
on Jan 03, 2013 at 01:27 UTC ( #1011379=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %seen;
    my @uniq = grep { !$seen{$_}++ } keys(%hash1), keys(%hash2);
    
  2. or download this
    use List::MoreUtils qw(uniq);
    my @uniq = uniq( keys(%hash1), keys(%hash2) );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2016-07-31 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (269 votes). Check out past polls.