Firstly thanks a lot for all your help, and shame on me for that error on the first chomp snippet. Moritz thanks to you especially cause the code you sent seems very elegant and functional to solve my problem. I decided to put it in my script, anyway since i'm trying to learn Perl... There are 2 obscure points in your code which i still didn't grasp completely and i'd be glad if you or somebody else in this monastery could explain them to me.
1. The -1 and the 2 within square brackets inside the partition_usage sub. What is their exact purpose?
2. If i had to glob for zipped logfiles within subdirectories how could i do it?