in reply to Moving .doc Files

How about this:

# open them my $old = "something.doc"; my $new = "somethingelse.doc"; open OLD, '<', $old or die "Can't open old: $!\n"; open NEW, '>', $new or die "Can't open new: $!\n"; binmode OLD; # only need these on windows binmode NEW; # copy print NEW <OLD>; # close them close OLD; close NEW;

Replies are listed 'Best First'.
Re^2: Moving .doc Files
by bkiahg (Pilgrim) on Jun 23, 2004 at 23:00 UTC
    That worked also! File::Copy will suffice for this particular project, but its always good to know how to do it with less code. Thanks!