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
In reply to Last Modification date by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |