use strict; use File::NCopy qw(copy); my $dir = shift; my $new = 'destination'; -d $dir or die $!; -d $new or mkdir $new; my @files = grep { -f } glob "$dir/*"; copy $_, $new for @files
In reply to Re^3: Moving files into another folder
by sh1tn
in thread Moving files into another folder
by prasadbabu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |