Hi
Can I safely pass a hash to another sub in Perl?
I want to be able to do:
&my_sub(%hash);
and then have
sub my_sub {
%hash = %_;
}
Would that work? Would it preserve the hash?
Thanks.
- wil
Can I safely pass a hash to another sub in Perl?
I want to be able to do:
&my_sub(%hash);
and then have
sub my_sub {
%hash = %_;
}
Would that work? Would it preserve the hash?
Thanks.
- wil