Thomas Drought <[EMAIL PROTECTED]> wrote: : Real Perl newbie question... : : 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:
Arrays use indexes (integers) to identify their individual values. Hashes use keys. You probably want a hash. : print 'My ID = %myarray['id']'; : print 'My Results = %myarray['results']'; Parsing is breaking something down into its component parts. You are printing here. Read 'perldata'. It is a file included in the standard perl distribution. It will help you with syntax. URI::URL and URI::QueryParam have functions to parse queries. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>