while () { chomp; my ($stock) = split / /; ... }