in reply to can't write a variable to a file

print (OUTFILE "$savestr");
do you want print the content of $savestr or the word '$savestr' ?
print OUTFILE '$savestr'; # print out $savestr print OUTFILE "\$savestr"; # print out $savestr

Replies are listed 'Best First'.
Re: Re: can't write a variable to a file
by sabotodd (Initiate) on May 11, 2004 at 09:56 UTC
    I want to print what is contained in $savestr. I've tried putting the $savestr without the double quotes..it doesn't work either.