W
Wijaya Edward
Hi,
How can I pass Array, Hash, and a plain variable
in to a function at the same time.
I come from Perl. Where as you probably know
it is done like this:
sub myfunc {
my ($plain_var, $hash_ref,$arref) = @_;
# Do sth with those variables
return;
}
I wonder how can that be done in Python.
Regards,
Edward WIJAYA
SINGAPORE
------------ Institute For Infocomm Research - Disclaimer -------------
This email is confidential and may be privileged. If you are not the intended recipient, please delete it and notify us immediately. Please do not copy or use it for any purpose, or disclose its contents to any other person. Thank you.
--------------------------------------------------------
How can I pass Array, Hash, and a plain variable
in to a function at the same time.
I come from Perl. Where as you probably know
it is done like this:
sub myfunc {
my ($plain_var, $hash_ref,$arref) = @_;
# Do sth with those variables
return;
}
I wonder how can that be done in Python.
Regards,
Edward WIJAYA
SINGAPORE
------------ Institute For Infocomm Research - Disclaimer -------------
This email is confidential and may be privileged. If you are not the intended recipient, please delete it and notify us immediately. Please do not copy or use it for any purpose, or disclose its contents to any other person. Thank you.
--------------------------------------------------------