ism has asked for the wisdom of the Perl Monks concerning the following question:
I get error message: Can't go to 'ONE TWO Three': at ...etc.my $ftp_dir_base = '\Folder\Somefolder\ONE TWO Three\_Some_Path\ONE TW +O Three Path1'; my $ftp_dir0 = "\Folder\Somefolder"; my $ftp_dir1 = "ONE TWO Three"; print "CWD to: $ftp_dir0\n"; $ftp->cwd($ftp_dir0) or die "Can't go to $ftp_dir0: $!"; print "CWD to: $ftp_dir1\n"; $ftp->cwd($ftp_dir1) or die "Can't go to $ftp_dir1: $!";
...and some others variantsmy $ftp_dir1 = "\"ONE TWO Three\""; my $ftp_dir1 = 'ONE TWO Three'; my $ftp_dir1 = '"ONE TWO Three"'; my $ftp_dir1 = "ONE\ TWO\ Three"; $ftp->cwd('ONE TWO Three') or die "Can't go to $ftp_dir1: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CWD to directory which name contain spaces
by RedElk (Hermit) on Aug 27, 2012 at 16:33 UTC | |
|
Re: CWD to directory which name contain spaces
by aitap (Curate) on Aug 28, 2012 at 13:22 UTC | |
|
Re: CWD to directory which name contain spaces
by philiprbrenan (Monk) on Aug 30, 2012 at 07:42 UTC | |
|
Re: CWD to directory which name contain spaces
by remiah (Hermit) on Aug 27, 2012 at 12:43 UTC | |
by ism (Initiate) on Aug 27, 2012 at 13:33 UTC | |
by remiah (Hermit) on Aug 27, 2012 at 21:00 UTC |