We don't bite newbies here... much | |
PerlMonks |
Re: return Both ARRAY and SCALARby Mutant (Priest) |
on May 01, 2009 at 13:34 UTC ( [id://761291]=note: print w/replies, xml ) | Need Help?? |
Instead of doing what you're doing, you could just store everything in an array. Then for fields you know have only one value, just do:
Not perfect, but probably cleaner than the approach you're trying to take. (Whether it's useful or not will depend on exactly how you're using this data, which you haven't explained).
In Section
Seekers of Perl Wisdom
|
|