Re: Newbie needs some help w/ files/dates ...



meisenzahl@xxxxxxxxx wrote:

> About 5 years ago I worked my way to the O'Reilly Perl for Win32 book,
> but haven't used it since. I have a need to write a Perl app that will
> check the timestamps of several known files in known locations. If the
> date/time of any of the files is not the current date, send email to a
> known list of recipients.
>
> Can anyone get me started on how to check the date/time stamp of a file
> and compare it to the current day?

Fire up your command shell and run:
perldoc -f -M
perldoc -f localtime
perldoc -f time

Paul Lalli

.



Relevant Pages

  • Newbie needs some help w/ files/dates ...
    ... About 5 years ago I worked my way to the O'Reilly Perl for Win32 book, ... Can anyone get me started on how to check the date/time stamp of a file ... Prev by Date: ...
    (perl.beginners)
  • Re: Net::DNS
    ... function because you still use $rr within the foreach, ... > So I can find the all these object methods in the perl docs listed below? ... > the return value of 'grep'. ... > perldoc perlboot ...
    (perl.beginners)
  • Re: Posting Guidelines changes (was Re: variable interpolation of refs to anonymous subroutines)
    ... Experts at Perl or experts at posting to newsgroups? ... use warnings; # see perldoc warnings ...
    (comp.lang.perl.misc)
  • Re: Multitasking
    ... Just a comment for the archives, and to any other beginner to the Perl ... When you look at the perldoc for select, perldoc -f select, you ... select FILEHANDLE ... I just meant avoid using the "Low-level socket functions" ...
    (perl.beginners)
  • Re: Teach me how to fish, regexp
    ... Thanks for your response on this thread: ... On the other hand, maybe "older" perl is ... > everything up in perldoc and man pages. ... > pattern so that a quantifier can apply to it. ...
    (comp.lang.perl.misc)