The first step would have been to, say:
print "T is '$t'\n";In other words, "never assume" that you actually know what command-string is being executed. ...
$t = "dir \"C:\\ProgramData\\Test1\\Test Folder\""... So, the command that is presented will be:
dir "C:\\ProgramData\\Test1\\Test Folder"
$ perl -wMstrict my $t = "dir \"C:\\ProgramData\\Test1\\Test Folder\""; print "T is '$t'\n"; __END__ T is 'dir "C:\ProgramData\Test1\Test Folder"'
In reply to Re^2: What is wrong with this code?
by Anonymous Monk
in thread What is wrong with this code?
by prab2112
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |