Mike Singleton wrote: > > Yes, I agree that it very hard to read, and next to impossible to debug. I > appreciate everyone's comments very much. I will use your troubleshooting > method, but the kicker is the the damned backup program write these random > log file names (thus the my @files = glob('3*.log');), so I could only think > to open all the log files and start greping for strings... ick. Unless one > of ya'll can tell me of a way to open a file based on file creation date?
Unix files don't have a creation date so you will probably want to use the modification date. Use stat or lstat to get the mod. date (tenth field) which is stored as the number of seconds since the epoch. Or you might be able to use the -M file test operator. perldoc -f stat perldoc -f lstat perldoc -f -M John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]