Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Syntax explanation required

by eyepopslikeamosquito (Canon)
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 imbibing at the Monastery: (6)
As of 2014-07-13 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (250 votes), past polls