in reply to facing problem in escaping space in file path No such file or folder
and you'll get better error messages, observeuse autodie;
moral of the story, single quotes do not interpolate$ perl -Mautodie -e " $asdf = 44; chdir '$asdf' " Can't chdir('$asdf'): No such file or directory at -e line 1 $ perl -Mautodie -e " $asdf = 44; chdir $asdf " Can't chdir('44'): No such file or directory at -e line 1
Also, chdir does not care about spaces
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: facing problem in escaping space in file path No such file or folder
by NaveeN Kumar S (Initiate) on Jun 22, 2011 at 11:07 UTC | |
by Jenda (Abbot) on Jun 22, 2011 at 14:34 UTC |