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