>>969
ここをこう直せばおk
($sbjが他のフィールドに出てこないことが前提ですが)

while (<$fh>){
next if !/$sbj/;
my @list = split /\s+/, substr $_, 34;
$sum += $list[0];
}