printing a filehandle to another file.
DBSMITH_at_OhioHealth.com
Date: 03/23/05
- Next message: Toolscripts: "Re: perlembed : makefiles on win32"
- Previous message: mgoland_at_optonline.net: "Re: SFTP problems..."
- Next in thread: DBSMITH_at_OhioHealth.com: "Re: printing a filehandle to another file."
- Maybe reply: DBSMITH_at_OhioHealth.com: "Re: printing a filehandle to another file."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <beginners@perl.org> Date: Wed, 23 Mar 2005 16:52:03 -0500
Here is my code:
use strict; use warnings;
my $tpexports = qq(/usr/local/bin/ohiohealth/derek);
my $archivedexports = qq(/usr/local/log/9940exports.archived);
open (FFFF_, "+>$tpexports") || die "could not open file:
$tpexports $!";
open (FOO, ">>$archivedexports") || die "could not open
file $!";
print FOO "\n", $tpexports;
close FFFF_;
close FOO;
My goal is to append whats in derek to FOO.
or
print "\n" >> derek ; cat derek >> 9940exports.archived;
thank you,
derek
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
- Next message: Toolscripts: "Re: perlembed : makefiles on win32"
- Previous message: mgoland_at_optonline.net: "Re: SFTP problems..."
- Next in thread: DBSMITH_at_OhioHealth.com: "Re: printing a filehandle to another file."
- Maybe reply: DBSMITH_at_OhioHealth.com: "Re: printing a filehandle to another file."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]