in reply to Re^2: read and write file in directory
in thread read and write file in directory
may be he is on windows
Doesn't matter. All the windows APIs (and thus all of Perl's) accept / as a path separator.
The problem with his use of \\ is that whilst doubling the backslashes works when he constructs the string, when he interpolates it into another string, the double backslash has been reduced to a single backslash, so it gets seen as escaping the next character in the string and disappears completely.
All windows/perl users should be aware and use / in preference to \ for paths, it makes life much easier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: read and write file in directory
by Corion (Patriarch) on Dec 01, 2014 at 13:14 UTC | |
by BrowserUk (Patriarch) on Dec 01, 2014 at 14:04 UTC |