Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Perl Lists and Arrays

by AndyZaft (Hermit)
on Sep 08, 2010 at 19:41 UTC ( #859400=note: print w/replies, xml ) Need Help??


in reply to Perl Lists and Arrays

Please use code tags for code, it will make things easier on all of us. Then if you wish to assign a list to an array, use the @ symbol instead of the $. That will actually print what you expect:
2 3 4 5 6 23456
I'd suggest going over the perldocs, especially the perldata section to understand difference between declaring scalars and arrays and how assignment of list would change depending on context.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2018-08-15 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (158 votes). Check out past polls.

    Notices?