Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Last mod not working
by monktim (Friar) on Jan 28, 2004 at 18:36 UTC | |
by Anonymous Monk on Jan 28, 2004 at 18:45 UTC | |
by monktim (Friar) on Jan 28, 2004 at 18:51 UTC | |
|
Re: Last mod not working
by ysth (Canon) on Jan 28, 2004 at 19:01 UTC | |
|
Re: Last mod not working
by derby (Abbot) on Jan 28, 2004 at 18:40 UTC | |
by ysth (Canon) on Jan 28, 2004 at 18:56 UTC | |
by derby (Abbot) on Jan 28, 2004 at 20:22 UTC |