taint has asked for the wisdom of the Perl Monks concerning the following question:
Never mind the example above, it doesn't work, it returns:# delete $file if it's not been modified for 15 minutes if ( (stat $file)[9] < time() - (3600 / 5) ) { unlink $file; }
Would anyone be willing to provide an example, please?Use of uninitialized value in numeric lt (<) at line 12 (#1) (W uninitialized) An undefined value was used as if it were already defined. It was interpreted as a "" or a 0, but maybe it was a mistak +e. To suppress this warning assign a defined value to your variables.
Thank you for all your consideration
--chris
#!/usr/bin/perl -Tw use perl::always; my $perl_version = "5.12.4"; print $perl_version;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: In -X FILEHANDLE, how to derive the -C of all files in a $dir variable?
by kcott (Archbishop) on Apr 27, 2013 at 06:18 UTC | |
|
Re: In -X FILEHANDLE, how to derive the -C of all files in a $dir variable?
by BrowserUk (Patriarch) on Apr 27, 2013 at 04:42 UTC |