Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    
    my %hash = ('a'=>1, 'b'=>2, 'b'=>3);
    ...
    $data->{'array'}[4]{'foobar'} = [@array];
    
    print Data::Dumper->Dump([$data], ['data']);
    
  2. or download this
    $data = {
              'a' => 1,
              'b' => 3,
    ...
                           }
                         ]
            };
    
  3. or download this
    use CGI qw(:standard -debug);
    my $cgi = new CGI;
    print Data::Dumper->Dump([$cgi], ['cgi']);
    
  4. or download this
    $cgi = bless( {
                    '.charset' => 'ISO-8859-1',
                    'foobar' => [
    ...
                                ],
                    '.fieldnames' => {}
                  }, 'CGI' );