in reply to Re^2: Perl Program - Out of memory?
in thread Perl Program - Out of memory?

Are you perchance coding on a widescreen monitor? It might affect your code layout.
$newMaxSalary = $QB1s + $QB2s + $RB1s + $RB2s + $WR1s + $WR2s + $TE1s ++ FL1s;
This shouldn't affect anything memory-related, but FL1s is missing a dollar sign there.