in reply to Re: Moving files into another folder
in thread Moving files into another folder

I tried File::NCopy, the files are not copied to that final_files using the above coding.

Prasad

Replies are listed 'Best First'.
Re^3: Moving files into another folder
by sh1tn (Priest) on Feb 18, 2005 at 15:24 UTC
    I hope this scratch helps:
    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


      Thank you i have got the solution.

      Prasad