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

    Thanks for the reply, it works fine when the windows version runs and it is hitting the same files. Would the script vary that much from one platform to the next?

    Here is the the actual error: root@irvws054 PlayBuildData# ./CheckD3PlayBuildTxtLocal.pl : PlayBuild_IX86.AHV does not exist : PlayBuild_IX86.AHV does not exist : PlayBuild_IX86.AHV does not exist : PlayBuild_IX86.AHV does not exist : PlayBuild_IX86.AHV does not exist : PlayBuild_IX86.AHV does not exist

      Notice there's nothing before the ":"? Are you saying the next didn't help? Try printing

      { use Data::Dumper qw( ); local $Data::Dumper::Useqq = 1; local $Data::Dumper::Terse = 1; local $Data::Dumper::Indent = 0; print(Data::Dumper::Dumper($line), "\n"); }

      (And use code tags around output, please)