here's a short solution that changes the input record separator to 2 newlines, one of my favorite tricks. I also wanted to see if I could get each variable populated with only one split which turned out to be easier than I thought.
use strict;
use warnings;
{
local $/="\n\n";
while (<DATA>) {
my (undef, $o, undef, $q, undef, $c, undef, $u) = split /\n|(
+?: : )/, $_;
print "Usage for object is $u bytes. Quota is $q bytes. Serve
+r is lnxdayhome01. Path is $o\n";
}
}
__DATA__
Object : T:\HD1\UDENTJP
Quota : 250000000 Bytes
Current : 0 Bytes
Used(%) : 0%