draco_iii has asked for the wisdom of the Perl Monks concerning the following question:
I have a routine that can return different information
depending on what kind of varible is asked of it.
If asking for a $ it returns a single set of data, if you ask for an @ it will return the array. But I can also have it return the information in a hash format. I've thought about passing the varible as a reference thinking that this would be a better way to determine it.
If asking for a $ it returns a single set of data, if you ask for an @ it will return the array. But I can also have it return the information in a hash format. I've thought about passing the varible as a reference thinking that this would be a better way to determine it.
Is this possible?
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do you test for return type($,@,%)?
by davorg (Chancellor) on Jun 23, 2000 at 21:46 UTC | |
Re: How do you test for return type($,@,%)?
by Russ (Deacon) on Jun 30, 2000 at 04:53 UTC | |
RE: How do you test for return type($,@,%)?
by Shendal (Hermit) on Jun 23, 2000 at 21:35 UTC | |
by chromatic (Archbishop) on Jun 24, 2000 at 02:11 UTC | |
Re: How do you test for return type($,@,%)?
by bimleshsharma (Beadle) on Nov 16, 2011 at 07:06 UTC |
Back to
Seekers of Perl Wisdom