in reply to Rotate log files based upon disk percentage full?
What have you tried? I am curious also why you posted this here. Is perl definitely going to be the solution? Logrotate and logadm are not perl modules, near as I can tell.