- or download this
use strict;
use warnings;
...
while (my ($key, $val) = each(%{clone_h()})) {
print("$key => $val\n");
}
- or download this
cloning %a
b => 2
...
cloning %a
c => 3
...
- or download this
use strict;
use warnings;
...
foreach my $entry (@{clone_a()}) {
print "$entry\n";
}