There's more than one way to do things | |
PerlMonks |
Re: How to start automation to open the last three logfiles to get build informationby toolic (Bishop) |
on Jul 10, 2007 at 21:20 UTC ( [id://625930]=note: print w/replies, xml ) | Need Help?? |
Allow me to pour some ideas...
Use perltidy to neaten up your code a little. Use:
Is it really necessary to cd to any of these directories? If you just need to read in specific files, you can use the full path to the file. Are the "last 3 files" based on a numeric string in the filename, or are they based on the file's timestamp? You only need $arg=$ARGV[0]; once.
In Section
Seekers of Perl Wisdom
|
|