Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
What am I doing wrong here? It was working but then again I say that all the time. Please advise.
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
Back to
Seekers of Perl Wisdom