Help for this page

Select Code to Download


  1. or download this
    use CGI;
    my $query = CGI->new;
    my @names = $query->param;
    my %hash  = map { $_, $query->param( $_ ) } @names;
    
  2. or download this
    my %hash  = map { my @vals = $query->param( $_ ); $_, \@vals } @names;
    
  3. or download this
    #!c:/perl/bin/perl.exe -wT
    use strict;
    ...
          $query->pre( $query->h1('Hash2'), Dumper( \%hash2 )),
          $query->pre( $query->h1('Chipmunk'), Dumper( \%chipmunk )),
          $query->end_html;