in reply to Re: file handing
in thread file handing
now the problem i have. it copies when no rename but when i try to put rename. the file gets renamed but cant be copied after rename
use strict; use warnings; use File::Copy; my $NFILE = "09911"; my $FILE = '02190.JPG'; my $filetobecopied = $FILE; my $foldertocopyto = "img"; my $rename = rename($FILE, "$NFILE.JPG"); copy($rename, $foldertocopyto) or die "File cannot be copied.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: file handing
by poj (Abbot) on Sep 22, 2018 at 16:34 UTC | |
by bigup401 (Pilgrim) on Sep 22, 2018 at 23:35 UTC | |
by Athanasius (Archbishop) on Sep 23, 2018 at 06:48 UTC |