in reply to Re: Copying files
in thread Copying files

I meant to put a chomp in there also so it should read:
#!/usr/bin/perl open(GG,"getall.txt"); $dest="/home/test/files/"; $targ="/home/new/newfiles/"; while (<GG>) { chomp; ($first,$second,$third)=split(/\./,$_); print "first: $first second: $second third: $third \n"; my $dest_file = $dest . $_; my $target_file = $targ . "gotit.$second.$third"; system (`cp $dest_file $target_file`); } close(GG);
-Enlil

Replies are listed 'Best First'.
Re: Copying files
by mark_clements (Initiate) on Sep 27, 2002 at 12:08 UTC
    File::Copy? It saves hassle at least... Mark