You have already received the answer to your question, do not use {}, because it creates an anonymous hash link.
However, the question still remains that you did not know what you asked.
What is the difference between array and list in Perl?
"", , . , .
- . . .
, , .
?
, my $foo = (1,2,3). $foo , (1,2,3) .
(1,2,3) , . .
, . , ((1 ,2),3), ((2),3) , , 3.
my @foo = (1,2,3) . , (1,2,3) . . , ((1,2),3), (list_of(1,2),3), list_of(list_of(1,2),3), Perl , list_of(1,2,3). @foo. , Perl list_of, , . Perl, .
, , Perl? :
, :