capa has asked for the wisdom of the Perl Monks concerning the following question:
and then I try it:#!/usr/bin/perl use LWP::Simple; ($content_type, $document_length, $modified_time, $expires, $server) = + head $ARGV0; printf "$content_type <> $document_length <> $modified_time <> $expire +s <> $server\n";
As you can see server is not the last item of list returned by head, in fact it has no fixed position in that list.bash$ ./test_head.pl http://localhost/tmp text/html <> <> Apache/1.3.9 (Unix) Debian/GNU PHP/3.0.14 <> <> bash$ ./test_head.pl http://localhost/ text/html <> 274 <> 953031425 <> Apache/1.3.9 (Unix) Debian/GNU PHP/3. +0.14 <> bash$ ./test_head.pl http://localhost/index.html text/html <> 274 <> 953031425 <> Apache/1.3.9 (Unix) Debian/GNU PHP/3. +0.14 <>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::Simple
by chromatic (Archbishop) on Mar 15, 2000 at 02:44 UTC | |
by capa (Initiate) on Mar 15, 2000 at 22:06 UTC | |
|
Re: LWP::Simple
by Anonymous Monk on Mar 14, 2000 at 23:49 UTC | |
by plaid (Chaplain) on Mar 14, 2000 at 23:52 UTC | |
by capa (Initiate) on Mar 15, 2000 at 01:02 UTC | |
by LucidMatrix (Initiate) on Feb 13, 2001 at 13:20 UTC | |
by plaid (Chaplain) on Mar 15, 2000 at 06:02 UTC |