in reply to Re^2: Moving files into another folder
in thread Moving files into another folder
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Moving files into another folder
by prasadbabu (Prior) on Feb 18, 2005 at 15:32 UTC |