Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Docs notation

by radiantmatrix (Parson)
on Jul 27, 2007 at 14:44 UTC ( [id://629115]=note: print w/replies, xml ) Need Help??


in reply to Docs notation

It's likely to be #2, since:

$ret = foo($scalar);

Is (generally) equivalent to:

$ret = foo($scalar, undef, undef);

There's another option, though, and it all depends on how the author wrote his/her code:

$ret = foo($scalar, [], $hash_ref);

In other words, it may be necessary to use an empty arrayref, though my gut would say using just undef would be more likely correct.

<radiant.matrix>
Ramblings and references
The Code that can be seen is not the true Code
I haven't found a problem yet that can't be solved by a well-placed trebuchet

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (None)
    As of 2024-04-25 04:00 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found