Help for this page

Select Code to Download


  1. or download this
    perl -le '%x=(y=>"a"); $a="Z";print ${$x{y}}'
    
  2. or download this
    use strict;
    my %hoa = ( foo => [0, 1], bar => [2, 3] );
    for ( keys %hoa ) {
       print " $_  contains: @{$hoa{$_}}\n";
    }