Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Syntax explanation required

by Athanasius (Archbishop)
on Jan 02, 2013 at 13:10 UTC ( [id://1011266]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash3 = (%hash1, %hash2);
    my @uniq  = keys %hash3;
    
  2. or download this
    my @uniq = keys (%hash1, %hash2);
    
  3. or download this
    #! perl
    use Modern::Perl;
    ...
    my %hash2 = (homer => 'marge', fred   => 'wilma');
    my @uniq  = keys { %hash1, %hash2 };
    dd @uniq;
    
  4. or download this
    23:05 >perl 464_SoPW.pl
    ("barney", "homer", "fred")
    
    23:08 >
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2024-04-19 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found