thdrought has asked for the wisdom of the Perl Monks concerning the following question:
Real Perl newbie question...Searched the site but couldn't find the answer to this simple problem.
I have a script that retrieves a response using HTTP:Request and HTTP:Response. I get back a response in the content as a URLEncoded string, for example 'id=101&results=passed'
I would like to take this response, and parse it into an array where I can call each value by it's key name, for example:
print 'My ID = %myarray['id']'; print 'My Results = %myarray['results']';
How can I do this?
Thanks,
Tom
"With each day passing, what have you been doing?" --Lord Buddha
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Newbie Array Question
by borisz (Canon) on Oct 13, 2004 at 11:21 UTC | |
|
Re: Newbie Array Question
by Mutant (Priest) on Oct 13, 2004 at 11:22 UTC | |
|
Re: Newbie Array Question
by muba (Priest) on Oct 13, 2004 at 11:28 UTC | |
|
Re: Newbie Array Question
by gothic_mallard (Pilgrim) on Oct 13, 2004 at 12:17 UTC |