in reply to Simple server disk space display

You can try call
system "du -sh <your dir>";
This function show you summary size of <your dir>.
      
--------------------------------
SV* sv_bless(SV* sv, HV* stash);