in reply to Re: What is the difference between a list and an array?
in thread What is the difference between a list and an array?

Actually, those are both arrays. You might also amend the last sentence after running this code:
my $scalar = (1, 2, 4, 8); print "Have: $scalar\n";

Replies are listed 'Best First'.
Re^3: What is the difference between a list and an array?
by Anonymous Monk on Dec 13, 2010 at 06:01 UTC
    List is something which is nothing but a group of scalar variables separated by comma(,). In order to use the list in PERL, we need to declare it in an array variable, prefixed by "@", or a hash variable prefixed by "%".