Confusion on array and list. can anybody explain me the difference between
list and arrays.

my @xyz = ( 4, 5, 6 );

The right-hand side of the equals sign is a list.here I assign that list to
the variable @xyz.
its an array,list can be assigned to an array.

on similiar lines
we can assign Lists to hashes
my %zzz = ( a => 42, b => 43, b => 44 );




-- 
*********************************************************
Don't ask them WHY they hurt you,
because all they'll tell you is lies and excuses.
 Just know they were wrong, and try to move on.
**********************************************************

Reply via email to