Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 examining the Monastery: (7)
As of 2014-07-24 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (156 votes), past polls