"be consistent" | |
PerlMonks |
deferencing an hash in a subroutineby saintex (Scribe) |
on Aug 20, 2010 at 14:59 UTC ( [id://856292]=perlquestion: print w/replies, xml ) | Need Help?? |
saintex has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I have a problem, when I try to use a refernce to an hash in a subroutine. That works:
But I need to modify the orginal values, not a copy through "my" . But that: doesn't work, because I have:
Any suggestion about I can solve that? Thank you! _____________ UPDATE: On a suggestion below I write all my code: I would like to creare a Simply SQL wrapper. So: And then: Finally:
But I need to modify the original %q, not a copy... I think that in object orientend code, I will have a better result, but I'm not yet able to create OO Perl code. Finally I don't want to modify the global %q, but only the %q passed through argument list.
Back to
Seekers of Perl Wisdom
|
|