Don't ask to ask, just ask | |
PerlMonks |
Re^2: Modify a hash via its referenceby Errto (Vicar) |
on Jan 23, 2008 at 22:51 UTC ( [id://663905]=note: print w/replies, xml ) | Need Help?? |
No need for the "()" around a single my variable declarationThis is true in most situations but not all. From the OP's code: In this style of parameter initialization, the parentheses are in fact required. Otherwise $Ref_to_Hash will be assigned the number of arguments, not the value of the first one.
In Section
Seekers of Perl Wisdom
|
|