Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Reading an array with a single value (My 2nd completed script!)

by higle (Chaplain)
on Oct 01, 2001 at 17:59 UTC ( [id://115870]=note: print w/replies, xml ) Need Help??


in reply to Reading an array with a single value (My 2nd completed script!)

Whenever you assign a complete array to a scalar variable, e.g. my $foo = @baz; , the variable $foo will get the length or size of the array.

Essentially, your scalar was getting the number of arguments passed to your subroutine.

higle
  • Comment on Re: Reading an array with a single value (My 2nd completed script!)
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-19 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found