Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: please explain some code

by happy.barney (Friar)
on Jul 18, 2011 at 11:39 UTC ( [id://915146]=note: print w/replies, xml ) Need Help??


in reply to Re^2: please explain some code
in thread please explain some code

"my $dir = @_" is scalar context, so $dir will contain number of elements in @_
"my ($dir) = @_" is list context, so $dir will contain first value of @_ (if exists)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2025-07-12 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.