Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::Simple; use strict; use warnings; my $url = 'http://site/toyota.htm'; my ($lastMod) = (head($url))[2]; #This does work my $url2 = 'ftp://ftp.thesite.com/public/information/'; my ($lastMod2) = (head($url2))[2]; #This doesnt work print "$lastMod\n"; #Prints last mod date print "$lastMod2\n"; #Prints nothing
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Last Modification date
by Abigail-II (Bishop) on Oct 09, 2003 at 11:58 UTC | |
by thens (Scribe) on Oct 09, 2003 at 12:22 UTC | |
by Anonymous Monk on Oct 09, 2003 at 12:21 UTC |