perlCrazy has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
If I want to return hash or array, should I return ref of variable or just hash or array.
Till now I always used to return Ref, just want to know is this the efficient and best way to return value from function.
From any subroutine what is the best and efficient way to return value ?
If I want to return hash or array, should I return ref of variable or just hash or array.
Till now I always used to return Ref, just want to know is this the efficient and best way to return value from function.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Return value from function
by bart (Canon) on Jul 12, 2007 at 17:50 UTC | |
Re: Return value from function
by runrig (Abbot) on Jul 12, 2007 at 17:18 UTC | |
Re: Return value from function
by bloonix (Monk) on Jul 12, 2007 at 17:35 UTC | |
by perlCrazy (Monk) on Jul 12, 2007 at 17:47 UTC | |
Re: Return value from function
by lyklev (Pilgrim) on Jul 12, 2007 at 21:26 UTC |
Back to
Seekers of Perl Wisdom