in reply to Re^2: Porting Code from windows to *nix help
in thread Porting Code from windows to *nix help

Maybe there is trailing whitespace at the end of $line (and then in $build)?

You should output the full name of the file you are checking.