PDA

View Full Version : Printing to a file


crca
10-29-2002, 08:54 AM
I am making a mod for YaBB (yet another ...) and I want to know how i can print $variable_name without it showing the contents of the file.

E.G.


open(THELOG, ">>$lgdir");
print THELOG "$variable_name
close(THELOG);


But that will return the contents of the variable.

Thanks in advance with your help

chrisvmarle
10-29-2002, 01:37 PM
Not sure, but is this what you mean:

open(THELOG, ">>$lgdir");
print THELOG "\$variable_name";
close(THELOG);

Mzzl, Chris