Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: return Both ARRAY and SCALAR

by Mutant (Priest)
on May 01, 2009 at 13:34 UTC ( #761291=note: print w/replies, xml ) Need Help??


in reply to return Both ARRAY and SCALAR

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:
my ($field) = $parser->get_values();
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).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://761291]
help
Chatterbox?
[Corion]: "Google https issue"? The self-referencing links are site/protocol relative I think, so if you are on https you get https
[Corion]: But yes, I think we should move the canonical site link to https (and finally move the last machine onto the Perlmonks.org certificate instead of the pairsite.com certificate)
[marto]: Good morning all

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2018-02-23 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (301 votes). Check out past polls.

    Notices?