Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Array in scalar context.

by Zaxo (Archbishop)
on Oct 04, 2003 at 02:52 UTC ( [id://296455]=note: print w/replies, xml ) Need Help??


in reply to Array in scalar context.

That should read that you must use the scalar function to find the count in list context... The scalar function simply puts its argument in scalar context, independent of the external context.

Your usage is correct, though you would get a surprise if you changed the concatenation dots to commas for efficiency. That would put @foo in list context and you'd get the array contents spilled to the selected handle.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-19 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found