in reply to Re: Visit web-pages using perl
in thread Visit web-pages using perl

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

Replies are listed 'Best First'.
Re^3: Visit web-pages using perl
by radiantmatrix (Parson) on Sep 22, 2005 at 19:41 UTC

    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