Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing to a file

Status
Not open for further replies.

jmdc

MIS
Feb 2, 2001
19
US
How can I get the print statements to write to a file? Using windows with Interix.

if( $this = $that) {
print "AAA\n";
print "BBB\n";
print "CCC\n";
}

-Justin
 
open(DAT, ">>file.txt");
print DAT
"info";

for perl of course. this is a perl form...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top