On Wednesday, June 26, 2002, at 07:11 , Octavian Rasnita wrote: [..]
I'm not sure I get what your real problem here is: > if I use: > > use LWP::Simple; > print head(http://localhost/index.shtml); > > This prints: > text/plain; charset=ISO-8859-1Apache/2.0.36 (Win32) > > I have problems because of this fact with a web crawler. [..] If you were trying to parse in what you got from LWP::Simple::head() then wouldn't it be best to get that into an array? you may want to think in terms of say: [jeeves:~] drieux% perl -MLWP::Simple -e 'my @array = head("http://www.wetware.com/drieux"); print "$_\n" for @array;' text/html Apache/1.3.12 (Unix) (Red Hat/Linux) mod_jk mod_ssl/2.6.6 OpenSSL/0.9.5a PHP/4.1.2 mod_perl/1.24 FrontPage/4.0.4.3 [jeeves:~] drieux% since I would HEAD that as: [jeeves:~] drieux% HEAD http://www.wetware.com/drieux 200 OK Connection: close Date: Thu, 27 Jun 2002 14:50:34 GMT Server: Apache/1.3.12 (Unix) (Red Hat/Linux) mod_jk mod_ssl/2.6.6 OpenSSL/ 0.9.5a PHP/4.1.2 mod_perl/1.24 FrontPage/4.0.4.3 Content-Type: text/html Client-Date: Thu, 27 Jun 2002 14:50:34 GMT Client-Response-Num: 1 X-Powered-By: PHP/4.1.2 [jeeves:~] drieux% ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]