in reply to Re: Why? (each...)
in thread Why? (each...)

Curly braces create an anonymous hash and return a reference to it.
Square brackets create an anonymous array and return a reference to it.
Parenthesis, in the context of this discussion, indicate a list.

Anonymous in the sense that there is no named variable for the hash or array -- you have to access them via the reference.

Elda Taluta; Sarks Sark; Ark Arks

Replies are listed 'Best First'.
Re^3: Why? (each...)
by ikegami (Patriarch) on May 12, 2011 at 20:35 UTC

    What does "indicates a list" mean?

    my %h = ($x); # List created for RHS. my %h = $x; # List created for RHS. my $s = ($x); # No list created for RHS. my $s = $x; # No list created for RHS.