- or download this
my %hash;
@hash{ 3,4 } = qw( perl hacker );
print join ",", keys %hash; # prints "3,4"
- or download this
my %hash;
$hash{ 3,4 } = qw( perl hacker );
print join ",", keys %hash; # ????
- or download this
my %hash;
$hash{ (3,4) } = qw( perl hacker );
print join ",", keys %hash; # ????
- or download this
my %hash;
$hash{ [3,4] } = qw( perl hacker );
print join ",", keys %hash; # ????
- or download this
my %hash;
$hash{ 3,4 } = qw( perl hacker );
print $hash{ 3,4 }, "\n";
- or download this
my %hash;
for my $i (0..5) {
...
}
}
foreach ( keys %hash ) { print "$_ : ", $hash{ $_ }, "\n"; }
- or download this
grep { nth_element_of_the_key eq 'test' } keys %hash;