Help for this page

Select Code to Download


  1. or download this
    sub printh {
        tie my %x, 'Tie::IxHash', @_;  # Recreate the hash. Expensive
    ...
    }
    
    printh(%h);  # Flatten the hash
    
  2. or download this
    sub printh {
        my ($x) = @_;
    ...
    }
    
    printh(\%h);  # Pass a reference