in reply to how to a specific group of files from source directory to destination directory
use File::Util; use File::Copy; my($f) = File::Util->new(); my(@files) = $f->list_dir($dir,'--files-only'); foreach $file (@files) { copy ($file, "$targetDir/$file); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: copying each and every file from source directory to destination directory
by asdfghjkl (Initiate) on Oct 20, 2007 at 07:19 UTC | |
by erroneousBollock (Curate) on Oct 20, 2007 at 07:34 UTC | |
by asdfghjkl (Initiate) on Oct 20, 2007 at 07:42 UTC | |
by erroneousBollock (Curate) on Oct 20, 2007 at 07:50 UTC |