Help for this page

Select Code to Download


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