neutron has asked for the wisdom of the Perl Monks concerning the following question:
Seems simple enough right?? Well, I keep getting the same warning but don't know why:#!perl use warnings; use strict; use 5.010; my @file_info = stat($file); print join "\n", @file_info; my $timestamp = pop( @file_info ); print my $date = localtime $timestamp;
Everything still works but I don't understand what it's complaining about. By works, I mean the localtime operations works but if I try printing the contents of $timestamp for example, I just get the warning.Argument "" isn't numeric in localtime at examples.pl line 71.
Original content restored (above) by GrandFather
I screwed up the initial post. Not sure how to delete it but I will repost later.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to understand the warning.
by Corion (Patriarch) on Feb 01, 2009 at 21:35 UTC | |
by moritz (Cardinal) on Feb 01, 2009 at 21:58 UTC | |
|
Re: Trying to understand the warning.
by merlyn (Sage) on Feb 01, 2009 at 21:32 UTC | |
|
Re: Trying to understand the warning.
by moritz (Cardinal) on Feb 01, 2009 at 22:01 UTC | |
|
Re: Trying to understand the warning.
by neutron (Sexton) on Feb 01, 2009 at 21:49 UTC | |
|
Re: Trying to understand the warning.
by neutron (Sexton) on Feb 01, 2009 at 22:00 UTC |