in reply to Re^2: Porting Code from windows to *nix help
in thread Porting Code from windows to *nix help
$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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Porting Code from windows to *nix help
by mrbbq (Sexton) on Jun 29, 2011 at 22:04 UTC | |
by ikegami (Patriarch) on Jun 29, 2011 at 22:58 UTC |