Help for this page

Select Code to Download


  1. or download this
    my %h1 = (    "one"   => 1,
                  "two"   => 2,
    ...
                "six"   => 6,
                "one"   => 2222,
                );
    
  2. or download this
    $VAR1 = {
              'one' => [ 1, 2222 ]
    ...
              'five' => 5,
              'six' => 6,
            };
    
  3. or download this
    #!/usr/bin/perl -w
    
    ...
            push @{ $h1{$x} }, $h2{$x};
    }
    print Dumper (\%h1);
    
  4. or download this
    Can't use string ("1") as an ARRAY ref while "strict refs" in use at s
    +lice_hash.pl line 48
    
  5. or download this
    $VAR1 = {
              'three' => 3,
    ...
                          4
                        ]
            };