How to treat puts <value> as pure text - not a command



Hi,
I'm reading from a file, line by line, using 'gets $infile in_line',

then depending on the contents of the line, it may get processed before
being written to a file or wriiten out as 'raw' info - using 'puts
$outfile $in_line'

I'm hitting problems with the contents of the line, when I try to write
it out to file, if it contains '{' or '}' the script complains - I
suspect it is reading it has a special character, rather than pure text
- just something to write out to file.

How do I get puts to treat every thing as 'pure text' ?

Regards

Steve

.



Relevant Pages

  • Re: Office 2007 - Book Recommendation?
    ... Oh, and depending on which programs you use most often, both Beth Melton and Herb Tyson have written excellent books on Word, either of which I would also recommend. ... unsolicited mail sent to my personal account will be deleted without ... reading. ... After furious head scratching, CWLee asked: ...
    (microsoft.public.office.misc)
  • Re: is God one or three?
    ... On Sat, 10 Nov 2007 14:39:16 GMT, AZ Nomad ... but this "holy ghost" thing sounds like pure BS. ... Actually, from what I remember reading, it was stuck on just because ...
    (alt.home.repair)
  • Re: switch() Statement Question
    ... Are you reading the same text I'm reading? ... that they're depending on "some unspecified goodness"; ... existence of any conforming implementations. ...
    (comp.lang.c)
  • Re: Reading newly added lines when using open file r+
    ... When I open a file for reading and writing, ... % puts $f tata ... % getline $f ...
    (comp.lang.tcl)
  • Re: firefox error on page refreshing
    ... colored border on them depending on if they are selected or mouse ... or exists at the time) a reference to an element with the ID ... you are reading the id off an element and then using that to ...
    (comp.lang.javascript)