There's more than one way to do things | |
PerlMonks |
Re: Looking for some assistance in cleaning up a perl scriptby rev_1318 (Chaplain) |
on Jun 22, 2011 at 18:53 UTC ( [id://910963]=note: print w/replies, xml ) | Need Help?? |
No need to use pastbin. You can add your code here just fine using code-tags (and readmore-tags)... Some first comments: use variable names which mean something, also to others :) use consistent indentation in your code to improve readability use lexical file and directory handles this: to determine the oldest and newest file, could easier be writen as: No need for maps etc. (oh, and better use glob...) HTH, Paul
In Section
Seekers of Perl Wisdom
|
|