The above prints out:use LWP::Simple; use warnings; use strict; my $url = 'www.perl.com'; my $content = get($url); my ($lastMod) = (head($url))[2]; my ($lastModFormat) = scalar localtime($lastMod); print "$lastModFormat\n";
Use of uninitialized value in localtime at C:\Perl\bin\headerTest.pl l +ine 12. Wed Dec 31 19:00:00 1969
In reply to Last mod not working by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |