LWP::Simple (and other LWP modules) can help you download web pages. There's also WWW::Mechanize if you have to worry about sessions.
I'm not sure what you're assigning to an array, though. That implies you wish to fetch multiple "somethings"? I don't know what that "something" would be.
| [reply] |
The array was an example. I just like to access a mysql database on a remote computer using apache. So I send a request to that cgi script. That cgi script accesses a database and returns the output back to this script.
Luca
| [reply] |
There are two approaches to this, depending on how important this is and how flexible/extensible/stable you want or need it to be.
The simple way would be to cause the CGI to return the data in some easily-parsible form, like a Storable block, an XML document, or something similar, then parse it on the client side appropriately.
The ideal way would be to implement a SOAP (or other web-services API) service on the server, and write a client for it.
<-radiant.matrix->
Larry Wall is Yoda: there is no try{} (ok, except in Perl6; way to ruin a joke, Larry! ;P)
The Code that can be seen is not the true Code
"In any sufficiently large group of people, most are idiots" - Kaa's Law
| [reply] |