Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: variable declaration question

by muba (Priest)
on Jan 18, 2013 at 22:39 UTC ( #1014147=note: print w/ replies, xml ) Need Help??


in reply to Re: variable declaration question
in thread variable declaration question

In the above example I have an array on the LHS and an array on the RHS. This is equivalent to:

Strictly speaking... this not true. You have a list on the LHS, as per perlfaq4: What is the difference between a list and an array:

A list is a fixed collection of scalars. An array is a variable that holds a variable collection of scalars. An array can supply its collection for list operations, so list operations also work on arrays

...

Array operations, which change the scalars, rearranges them, or adds or subtracts some scalars, only work on arrays. These can't work on a list, which is fixed. Array operations include shift, unshift, push, pop, and splice.


Comment on Re^2: variable declaration question
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-04-23 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (541 votes), past polls