in reply to Re: Returning multiple values from a function
in thread Returning multiple values from a function
ok thanks for your input. I corrected the problem in a doofangled way.. I passed type by reference to the function and only returned the hash. I don't know if I like it but it works atm.
Here is my next question. If I get a scalar hashref back from that function like so, $mynewref = findResults() do i simply pass that ref to another function who needs access to the hash data. ie. assignResultSet($mynewref); and then simply treat it as a hashref inside the sub? I wouldn't think you would pass it as a ref again because then you would need to doubly deref it unless i'm mistaken. That is my hunch but I'm not sure if that's the correct/accepted way to do it
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Returning multiple values from a function
by Limbic~Region (Chancellor) on Sep 03, 2003 at 18:53 UTC | |
|
Re: Re: Re: Returning multiple values from a function
by hmerrill (Friar) on Sep 03, 2003 at 20:01 UTC | |
by Grygonos (Chaplain) on Sep 03, 2003 at 20:37 UTC | |
by castaway (Parson) on Sep 04, 2003 at 07:35 UTC |