in reply to File::Find problems
As a result, I am getting a no such directory error when I try to rename(move) filename.
Not true. rename doesn't care about the doubled slash, because the system doesn't care about the doubled slash.
$ mkdir -p x/x $ perl -e'rename "x//x", "x//y" or die' $ ls -l x total 4 drwx------ 2 ikegami pg1404028 4096 2010-01-14 23:55 y
Also tested on Windows.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Find problems
by 7stud (Deacon) on Jan 15, 2010 at 08:06 UTC | |
by ikegami (Patriarch) on Jan 15, 2010 at 08:10 UTC | |
by ikegami (Patriarch) on Jan 15, 2010 at 08:13 UTC | |
by 7stud (Deacon) on Jan 15, 2010 at 08:23 UTC | |
by ikegami (Patriarch) on Jan 15, 2010 at 08:28 UTC | |
by 7stud (Deacon) on Jan 15, 2010 at 08:33 UTC | |
|