If you used warnings, Perl would tell you what goes wrong:
> perl -we "my $filename = qq(d:\Swalpa Development kaliri ....Sir\Wor +kSpace\Perl\CMD_File.txt);" Unrecognized escape \S passed through at -e line 1. Unrecognized escape \W passed through at -e line 1. Unrecognized escape \P passed through at -e line 1. Unrecognized escape \C passed through at -e line 1.
A backslash is a special character in (double-quoted) strings. See perlop.
In reply to Re: Spaces in file path
by Corion
in thread Spaces in file path
by gvinu4u
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |