I thought I would just note that while
Filesys::Df is not portable to the Windows environment, it is highly portable between *NIX platforms, providing a better means (IMHO) by which to check available disk space (via a
statvfs call) on these platforms than parsing the output of
df - An example of the usage of this module and a discussion on its merits over the parsing of the output of
df can be found
here.