Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: creating 2D arrays

by PrakashK (Pilgrim)
on Jul 24, 2001 at 21:09 UTC ( #99413=note: print w/ replies, xml ) Need Help??


in reply to Re: creating 2D arrays
in thread creating 2D arrays

Without this constructor your array is called in scalar context and it'll just return the number of elements it contains.
Small correction.

push does not evaluate its second argument in scalar context, rather it expects a list. Even if a scalar is pushed, it would be as if the second parameter is a one-element list.


Comment on Re: Re: creating 2D arrays

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-07-23 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (133 votes), past polls