Help for this page

Select Code to Download


  1. or download this
    use v5.36;
    use warnings;
    ...
    for my ($key, $value) ( %hash{"c","a","e"} ) {
        say "$key -> $value";
    }
    
  2. or download this
    $ perl  /d/perl/pm/iterate_hash_slice.pl
    c -> 3
    a -> 1
    e -> 5