If you escape a character with \ in a double-quoted string it'll have a different meaning.$path = "\path1\path2\path3\file.ext"; # change " to ' and # you'll be fine $path = '\path1\path2\path3\file.ext';
In reply to Re: Extracting filename from a path string
by perlplexer
in thread Extracting filename from a path string
by Snaps_Provolone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |