Reading string "00" from a file

2003-06-03 Thread Sockmonkey
My program writes string to a text file and reads them back in. I do it like this: print OUT "$str\n"; and then $str = ; chomp($str); The problem is one of my strings is "00". It gets written out fine, but gets read in as "0". How can I stop this from happening? Thx -- To unsubscribe, e-ma

Re: Reading string "00" from a file

2003-06-03 Thread Sockmonkey
> > The problem is one of my strings is "00". It gets written out fine, but gets > > read in as "0". How can I stop this from happening? > > > > Perl has no problem reading a string like this. Are you sure you don't add > it with 0 or do something else numeric in between? It works for me. Ah, you