Help for this page

Select Code to Download


  1. or download this
    my $col_width = ( sort { $b <=> $a } map { length } ( #sort lengths
                           (keys %lists, map { @$_ } values %lists)       
    +          
                      ) )[0] + 2; #2 is the padding
    
  2. or download this
        my %lists;
        my @amazon = qw(hot tropical humid wet);
    ...
    
        $lists{"The Amazon is"} = \@amazon;
        $lists{"The Sahara is"} = \@sahara;