in reply to Win32 CGI breaks STDIN?
A quick fix in your script is to make sure the \r is removed as well.my $indir = <STDIN>; # $indir = "directory\r\n"; # binmode stops the \r\n -> \n translation chomp $indir; # chomp removes $/, which is "\n" # the \r is left intact
The ideal fix is for CGI not to call binmode() on STDIN when the script is run interactively.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Win32 CGI breaks STDIN?
by Anonymous Monk on Feb 01, 2001 at 00:35 UTC |