in reply to hard drive space
or just run dir from your perl script, pipe it if you like. Extract info from output.