in reply to facing problem in escaping space in file path No such file or folder

When the script doesn't work as you think it should, it's usually helpful to print the contents of some variables to see whether they contain the data you think they do!

$unInstallExepath= "c:\program files\netbeans 7.0\uninstall.exe"; print $unInstallExepath, "\n";

Does this print what you thought it will? Try to find out why!

Then try to print what you pass to the chdir() function:

print '$path', "\n";

Again not what you seem to expect. Remember, the quotes matter!

Jenda
Enoch was right!
Enjoy the last years of Rome.

Replies are listed 'Best First'.
Re^2: facing problem in escaping space in file path No such file or folder
by Anonymous Monk on Jun 22, 2011 at 12:02 UTC

    issue in " itself, the value $unInstallExepath= "c:\program files\netbeans 7.0\uninstall.exe"; was getting from registery the registery value it self having/starting with " and then data. now i escaped " with $path =~s /\"//; now i am able to change to directory

    THANKS for ALL, helping me to solve this issue. THANKS for immediate replayes.