Just use File::Copy
use File::Copy; use strict; use warnings; for (qw(C:\files\data.txt C:\files\scripts\datascript.pl)) { copy($_, '.') or die "Can't cp: $!"; }
In reply to Re: Copying files from a directory to cwd
by wind
in thread Copying files from a directory to cwd
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |