Also being a Perl n00b myself, my suggestion is that you need to do some more work.
What about something like:
open FILE, "< filename" or die("blahblahblah");
open FILE2, "< filename2" or die("more blahblahblah");
open FILE3, "> filename3" or die ("still blahblahblah");
my $foo = join ("", <FILE>);
my $bar = join ("", <FILE2>);
my $newbar = $foo . $bar;
print <FILE3> $newbar;
I'm sure I'm re-inventing the wheel here, and I realize I am not using File::Copy at
all like you desired, and this is probably a pretty cheesy way to do this, but it is
something to ponder, and I'm sure some of the more knowledgeable Perl-keteers can give
better suggestions.
John Pitchko
Data Services
Saskatchewan Government Insurance
>>> <[EMAIL PROTECTED]> 08/08/02 03:00pm >>>
Good day;
I apologize in advance if this is a very stupid question*
I'm trying to concatenate two files and have the results written to a
third file.
Maybe I'm missing something obvious... but in Perldoc for File::Copy I
read: "The copy function takes two parameters: a file to copy from and
a file to copy to."
What can I do if I have a second file I want to copy from? (i.e. Like
DOS copy command: c:\ file1.txt + file2.txt file3.txt will copy the
contents of file1.txt & file2.txt and put the combined contents into
file3.txt)
Thank you all for your time.
Carl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]