Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Scalars, Lists, and Arrays

by kha0z (Scribe)
on Apr 13, 2001 at 23:37 UTC ( #72455=note: print w/replies, xml ) Need Help??


in reply to Scalars, Lists, and Arrays

I found Figure 1-1 on page 11 of the Camel book (3rd Ed.) to give a nice visual explanation on arrays and associative arrays. It aslo helps to see the containment of scalar values within such arrays.

Good Hunting,
kha0z

Replies are listed 'Best First'.
Re^2: Scalars, Lists, and Arrays
by agadabanka (Initiate) on May 02, 2009 at 23:44 UTC
    yet another observation: perl arrays and lists are different in the sense that enclosing a ( ) around a bunch of numbers will concatenate them when used under a comma operator, while when used under a [ ] they retain their identity. anything like: my @data = ( @xvalues, @yvalues ) concatenates xvalues and yvalues. if xvalues/yvalues is an array then they get concatenated. however if they are lists [ ], they retain their identity.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://72455]
help
Chatterbox?
[marioroy]: We made it all the way to the end. The expience was magical. I not good at sports. Someone or thing was there.
erix considers extracting a catalog ...
[karlgoethebier]: marioroy: Racket ball is considered harmful, like Squash
[marioroy]: Wait till folks see what MCE::Hobo can do in the upcoming release. Multiple instances, nested spawning, 3 levels, doesn't matter. it works on Windiows too.
[Lady_Aleena]: I hate sites that tell me to turn ad-blocker off. They should know better.
[marioroy]: s/Windiows/ Windows/
[Discipulus]: marioroy can you expand that Niagara's fall history?
erix only sees fallen angels
erix if it weren't for bad luck, I'd have no luck at all
Discipulus Windiows the OS of native americans..

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2017-05-29 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?