This (and Anonymous') is a typical technical answer. Totally correct but both of you fail to consider the actual user. The filename is presented to the user as part of an error message. Wouldn't it be a lot more user friendly if the program shows the filename in native format? That way the user doesn't have to concern itself with what's going on behind the scenes.
Also, there are other OSs use other characters and do not accept either back or forward slashes as directory delimiters.
I am totally aware of that and I am quite fond to let Path::Class handle that for me. However it's a bit besides the point. The OP did not imply that the program was running on any other OS besides Windows.
In reply to Re^3: Creating a new file in a directory
by Monk::Thomas
in thread Creating a new file in a directory
by parthodas
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |