http://qs1969.pair.com?node_id=324729

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.
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";
The above prints out:
Use of uninitialized value in localtime at C:\Perl\bin\headerTest.pl l +ine 12. Wed Dec 31 19:00:00 1969