Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://99413]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2017-03-30 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (353 votes). Check out past polls.