Mahdi A Sbeih wrote: > Hello all, > > I am testing a perl script on windows platforms, but i am facing an > issue with the path using "\" such as: > > myscript.pl -cfg D:\users\config.txt > > inside the script, when capturing the config file mentioned above, the > "\" is treated as escape character. >
No, the backslash is not an escape character inside a string, it's an escape character for string literals. String literals are the thingies inside quotes: "this is a string literal" 'this is a string literal' qq(this is a string literal) Once inside a string, the backslash character is only the backslash character (unless you're using the sting as a regular expression). -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>