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.
|
|---|