in reply to How to copy a file
err... didn't actually test that... but I'm sure it works :)open OLD "<", $oldfile or die "Can't open $oldfile ($!)\n"; open NEW ">", $newfile or die "Can't open $newfile ($!)\n"; print NEW while(<OLD>); close OLD; close NEW;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to copy a file
by runrig (Abbot) on Feb 28, 2008 at 22:38 UTC | |
|
Re^2: How to copy a file
by ack (Deacon) on Feb 28, 2008 at 21:43 UTC |