in reply to Nested (ARRAY|HASH)
which is a fancy way of writingmy %hash=( "outer"=> "cool"=>1, "Kewl"=> 2,"odd" );
my %hash=( "outer", "cool", 1, "Kewl", 2,"odd" );
You can witness this flattening of the list by passing your construct as parameters to a sub and have it check what it received:
Result:use Data::Dumper; sub test { print Dumper \@_; } test( "outer"=>( "cool"=>1, "Kewl"=>2,"odd" ) );
$VAR1 = [ 'outer', 'cool', 1, 'Kewl', 2, 'odd' ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Nested (ARRAY|HASH)
by narainhere (Monk) on Oct 30, 2007 at 06:38 UTC |