Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: What is the difference between a list and an array?

by chromatic (Archbishop)
on Dec 12, 2001 at 01:05 UTC ( [id://131046]=note: print w/replies, xml ) Need Help??


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 "%".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://131046]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-29 13:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found