$line surely contains at least a newline to be removed with chomp. (Upd: I didn't notice that you do remove the newline. Sorry. Note that $build contains junk. )
Furthermore, unless you gave me only half the error message, $line appears to contain nothing other then the newline. Maybe you need something like
while (my $line = <FILE>) { chomp; # Or more thorough: $line =~ s/\s+\z//; next if !length($line);
In reply to Re^3: Porting Code from windows to *nix help
by ikegami
in thread Porting Code from windows to *nix help
by mrbbq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |