How about:
select DATA;
Then all print statements will write to that filehandle.
Craig A. Sharp
Unix Systems Administrator
DNS Administrator
Roush Industries
Office: 734-466-6286
Cell: 734-231-6769
Fax: 734-466-6939
[EMAIL PROTECTED]
I have
print DATA "information";
-Original Message-
From: Matthew Harrison [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 1:47 PM
To: [EMAIL PROTECTED]
Subject: output to a textfile
i have opened a filehandle to a textfile with:
open(DATA, ">/home/edhunter/0001.txt") or die "Could n
On Mar 19, Matthew Harrison said:
>open(DATA, ">/home/edhunter/0001.txt") or die "Could not attach filehandle
>/home/edhunter/0001.txt\n";
>
>but what is the syntax to write into it? i have tried everthing i can find.
print DATA "something\n";
And you might not want to use the name "DATA" f
print DATA "your input";
>From: Matthew Harrison <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: output to a textfile
>Date: Tue, 19 Mar 2002 18:46:50 +
>
>i have opened a filehandle to a textfile with:
>
>open(DATA, ">/home/edhunter/0001.txt") or die "Could not attach filehandle
>/home
print DATA "put your stuff here";
perldoc -f print
print FILEHANDLE LIST;
> -Original Message-
> From: Matthew Harrison [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 1:47 PM
> To: [EMAIL PROTECTED]
> Subject: output to a textfile
>
>
> i have opened a filehandle to a text