qsl has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
I am having one directory and have to find if the file is created in the specified time of today.I know that
find . -mtime 1 -print will give all the files modified by today.I want to find a file in the specified time of today.

Eg.if current time is 17:34 , I want to check if a file is created in 17:32 or not.How i can do that??
Thanks.

Replies are listed 'Best First'.
Re: Find a File in a directory
by borisz (Canon) on Jun 28, 2006 at 11:05 UTC
    perldoc -f stat perldoc File::Stat
    Boris
Re: Find a File in a directory
by Corion (Patriarch) on Jun 28, 2006 at 11:33 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Find a File in a directory
by davidrw (Prior) on Jun 28, 2006 at 16:53 UTC
    if you come up with the equivalent find command line, you can use find2perl to translate it to perl