ghosh123 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monk,
I need to understand this following syntax which is collecting the unique keys from two hashes into one array.
The following code works fine, but I do not understand the meaning of the syntax, please explain me
Thanks.
I need to understand this following syntax which is collecting the unique keys from two hashes into one array.
The following code works fine, but I do not understand the meaning of the syntax, please explain me
Please explain me the syntax of the right hand side, how does this keys % { {%h1,%h2 } } thing work ??my @uniq = keys %{ {%hash1, %hash2} };
Thanks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Syntax explanation required
by LanX (Saint) on Jan 02, 2013 at 12:35 UTC | |
by ghosh123 (Monk) on Jan 02, 2013 at 13:00 UTC | |
Re: Syntax explanation required
by Athanasius (Archbishop) on Jan 02, 2013 at 13:10 UTC | |
Re: Syntax explanation required
by eyepopslikeamosquito (Archbishop) on Jan 03, 2013 at 01:27 UTC | |
by LanX (Saint) on Jan 03, 2013 at 01:58 UTC | |
by ghosh123 (Monk) on Jan 03, 2013 at 12:50 UTC | |
Re: Syntax explanation required
by sundialsvc4 (Abbot) on Jan 02, 2013 at 21:29 UTC | |
by Anonymous Monk on Jan 02, 2013 at 21:44 UTC | |
Re: Syntax explanation required
by Anonymous Monk on Jan 02, 2013 at 21:44 UTC |
Back to
Seekers of Perl Wisdom