Help for this page

Select Code to Download


  1. or download this
    # Parens, not curlies
    my %hash = (this => "one", that => "two"); 
    # Use a slash when dumping @var or %var
    print Dumper(\%hash);
    print($hash{this}, "\n");
    
  2. or download this
    my $hash = { this => "one", that => "two" }; 
    print Dumper($hash);
    print($hash->{this}, "\n");