open(FROM, 'file.txt') or die "Can't open file.txt: $!"; open(TO, '>copied_file.txt') or die "Can't open copied_file.txt: $!"; print TO while <FROM>;
In reply to Re: Re: What is the easiest way to copy one file to another?
by chromatic
in thread What is the easiest way to copy one file to another?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |