Help for this page

Select Code to Download


  1. or download this
    $ cat u.pl
    use strict;
    ...
    print "a hash expands to a list: ", Dumper(%hash), "\n";
    
    print "pass the hash as a ref: ", Dumper(\%hash), "\n";
    
  2. or download this
    $ perl u.pl
    a hash reference: $VAR1 = {
    ...
    pass the hash as a ref: $VAR1 = {
              'amountSubmitted' => 0
            };
    
  3. or download this
    $ perl u.pl
    array reference: $VAR1 = [
    ...
              'first value',
              'second value'
            ];