in reply to Nested (ARRAY|HASH)

You could say the parens are mostly ignored, here (they just influence operator precedence — between only commas, so no effect there), not induce grouping. Perl simply flattens the list. So your first example is equivalent to
my %hash=( "outer"=> "cool"=>1, "Kewl"=> 2,"odd" );
which is a fancy way of writing
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:

use Data::Dumper; sub test { print Dumper \@_; } test( "outer"=>( "cool"=>1, "Kewl"=>2,"odd" ) );
Result:
$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
    Many Thanks BART!!

    The world is so big for any individual to conquer