Do you know where your variables are? | |
PerlMonks |
Re: Finding Last minute file in a directoryby zwon (Abbot) |
on Aug 16, 2009 at 16:23 UTC ( [id://789031]=note: print w/replies, xml ) | Need Help?? |
This code will find the file modified less than a minute ago:
Alternatively (it depends on what you really need if that solution would fit you), if there's only log files in directory, you can get list of files, sort it, and use last file.
In Section
Seekers of Perl Wisdom
|
|