Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2015-10-14 04:18 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (320 votes), past polls