Help for this page

Select Code to Download


  1. or download this
    our $HSH2 : shared = ();
    $HSH2{123}{456} = "foo.xml"; # fails
    
  2. or download this
    # Why initialise a scalar to an empty list?
    our $HSH2 :shared = (); 
    ...
    
    # Assign a string to an element of the second.
    $HSH2->{123}->{456} = 'foo.xml';