in reply to Doubt on hash keys
If you want nested hash references you need to use {}. Like this:my %hash = ( 'hi' => 'hello', 'all' => 'bye', 'later' => 'gone', ); print $hash{'all'};
For more on nested data structures read references quick reference.my %hash = ( 'hi' => {'hello' => 'all'}, 'bye' => {'later' => 'gone'}, );
|
|---|