I need some help tweaking my code to look for another attribute in this unix df output:
df
Ex.
Filesystem Size Used Avail Capacity
Have you tried simply splitting on whitespace and taking the 4th and 5th columns?
my @cols = (split(/\s+/, $_)); my $avail = $cols[3]; my $cap = $cols[4];
(Fails if you have spaces in your device names of course...)