Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Moving .doc Files

by kelan (Deacon)
on Jun 23, 2004 at 21:08 UTC ( #369179=note: print w/replies, xml ) Need Help??

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!

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://369179]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2022-09-29 14:59 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (125 votes). Check out past polls.