NaomiG has asked for the wisdom of the Perl Monks concerning the following question:
For some reason the above code generates a file or directory not found error because of the $line command. I've checked and $GraphicsDirectory/023.jpg, as well as C:/graphics/023.jpg exist if I run a -e test, but $GraphicsDirectory/$line or C:/graphics/$line do not. I've checked the $line values too. I'd appreciate any ideas. Naomiforeach $line(@lines){ copy ("$GraphicsDirectory/$line", "$pparent/$path/images/$line"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File Copy with Array
by matija (Priest) on Apr 14, 2004 at 16:39 UTC | |
by NaomiG (Initiate) on Apr 14, 2004 at 20:17 UTC | |
|
Re: File Copy with Array
by revdiablo (Prior) on Apr 14, 2004 at 17:26 UTC | |
|
Re: File Copy with Array
by dragonchild (Archbishop) on Apr 14, 2004 at 17:04 UTC | |
|
use File::Flat;
by PodMaster (Abbot) on Apr 15, 2004 at 07:24 UTC | |
|
Re: File Copy with Array
by blue_cowdawg (Monsignor) on Apr 14, 2004 at 18:42 UTC | |
|
Re: File Copy with Array
by periapt (Hermit) on Apr 14, 2004 at 18:36 UTC |