Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is there an easy way of this?
Also, is it essentially the same thing as..
open(LOG, "file.ext") or die "$! oops"); my $data = <LOG>; close(LOG) open(LOG, ">/path/to/new/file.ext") or die ("$! oops"); print LOG $data; close(LOG);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to copy a file
by Corion (Patriarch) on Feb 27, 2008 at 19:37 UTC | |
|
Re: How to copy a file
by ww (Archbishop) on Feb 27, 2008 at 20:22 UTC | |
|
Re: How to copy a file
by Bloodrage (Monk) on Feb 27, 2008 at 21:04 UTC | |
by runrig (Abbot) on Feb 28, 2008 at 22:38 UTC | |
by ack (Deacon) on Feb 28, 2008 at 21:43 UTC | |
|
Re: How to copy a file
by jrsimmon (Hermit) on Feb 27, 2008 at 20:18 UTC |