here is the whole script. maybe this help you see it better.
#!/usr/bin/perl
$server=`uname -n`;
chomp ($server);
$username="newtarg1";
chomp ($username);
$path="/usr/home/$username/
chomp ($path);
$dtchk=`date`;
chomp ($dtchk);
($a1,$a2,$a3,$a4,$a5,$a6) = split (/\s+/,$dtchk);
$date = join ("",$a1," ",$a2," ",$a3," ",$a6);
$pathtomail="/usr/home/$username/var/mail";
$pathtologs="/usr/home/$username/
$pathtohtdocs="/usr/home/$username/
$pathtovhosts="/usr/home/$username/
chomp ($pathtomail);
chomp ($pathtologs);
chomp ($pathtohtdocs);
chomp ($pathtovhosts);
$chkmail=`du -ks $pathtomail`;
($c1,$c2) = split (/\s+/,$chkmail);
$chkmail2 = join ("","(path)",$c2," ","(size)",$c1," ","kilobytes"

;
$chklogs=`du -ks $pathtologs`;
($d1,$d2) = split (/\s+/,$chklogs);
$chklogs2 = join ("","(path)",$d2," ","(size)",$d1," ","kilobytes"

;
$chkhtdocs=`du -ks $pathtohtdocs`;
($e1,$e2) = split (/\s+/,$chkhtdocs);
$chkhtdocs2 = join ("","(path)",$e2," ","(size)",$e1," ","kilobytes"

;
$chkvhoststotal=`du -ks $pathtovhosts`;
($f1,$f2) = split (/\s+/,$chkvhoststotal);
$chkvhoststotal2 = join ("","(path)",$f2," ","(size)",$f1," ","kilobytes"

;
chdir "$path" or die "the little piggy went wee wee all the way home";
$vhostsall ="du -ks *";
@vhostsall = qx ( $vhostsall );
#chomp ($vhostsall);
foreach $sentence(@vhostsall){
unless (($sentence =~ htpasswd) && ($sentence =~ report)){
($g1,$g2) = split (/\s+/,$sentence);
$vall = join ("","(directory)",$g2," ","(size)",$g1," ","kilobytes"

;
$vall .= "\n";
push(@VH2, $vall);
}
}
$vh3 .= "@VH2";
$quota=`quota -v`;
chomp ($quota);
$pathtoreportfile="/usr/home/$username/report.txt";
open REPORT, ">$pathtoreportfile" or die "no file exists";
print REPORT "web directory usage report for server $server\n";
print REPORT "$date\n";
print REPORT "---------------------------------------------\n";
print REPORT "$chkmail2\n";
print REPORT "$chklogs2\n";
print REPORT "$chkhtdocs2\n";
print REPORT "\n";
print REPORT "$server\n";
print REPORT "\n";
print REPORT "$vh3";
print REPORT "---------------------------------------------\n";
print REPORT "$chkvhoststotal2\n";
print REPORT "\n";
print REPORT "$quota\n\n";
close REPORT;
$mailme="mail -t info\@newtarget.com < /usr/home/$username/report.txt";
system ($mailme);