You are looking at a very old, but free version of the course. If you are interesed the most recent version, check it out on the Perl Maven site.

15.3. Reporting file system diskspace usage (df)

Example 15-2. examples/applications/diskspace.pl

#!/usr/bin/perl
use strict;
use warnings;

use Filesys::Df qw(df);

my $df = df("/", 1024 * 1024 * 1024);
print "Percent Full:               $df->{per}\n";
print "Superuser Blocks:           $df->{blocks}\n";
print "Superuser Blocks Available: $df->{bfree}\n";
print "User Blocks:                $df->{user_blocks}\n";
print "User Blocks Available:      $df->{bavail}\n";
print "Blocks Used:                $df->{used}\n";   

If you are interested in on-site trainings by the author, please contact me directly.