in reply to Cannot open files using CGI
Those backslashes won't show up the way you expect unless you double them -- all they're doing here is inserting a newline in the strings. If $pathName is being defined the same way, the problem is compounded. I'm doubtful that this code works from the command line.my $newRefFile = "$pathName\newRefFile.txt"; my $newBlastFile = "$pathName\newBlastFile.txt";
You might as well just use a plain old forward slash for separating directory names, because perl will know what you mean by that and do the Right Thing. (Or you could use the appropriate File:: module(s) to construct path names in an OS-neutral manner.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cannot open files using CGI
by MonkPaul (Friar) on May 29, 2005 at 14:44 UTC | |
by graff (Chancellor) on May 30, 2005 at 00:51 UTC | |
by MonkPaul (Friar) on May 30, 2005 at 11:30 UTC | |
by graff (Chancellor) on May 30, 2005 at 15:54 UTC | |
|
Re^2: Cannot open files using CGI
by Anonymous Monk on May 30, 2005 at 12:01 UTC |