in reply to File Copy/Merge Question
Here's the extra-quick but naughty version. It should work just peachy with concatenating text files.
use strict; use warnings; my $destination = pop @ARGV; open OUT, ">$destination" or die "Couldn't create the concatenated file $destination: $!\n"; print OUT while (<>); close OUT;
The '<>' is a spicy bit of Perl that uses your command-line args as file names.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File Copy/Merge Question
by diotalevi (Canon) on Feb 13, 2004 at 21:27 UTC |