Re: removing hex characters from a file

2011-01-06 Thread Brian Fraser
If you still care to debug this, one more experiment: Try print "[$\]"; http://perldoc.perl.org/perlvar.html#$\ Brian.

Re: removing hex characters from a file

2011-01-06 Thread jbiskofski
Hey everyone, Im sorry, I tried and tried to reproduce this with a clear example without pasting a bunch of code and I couldnt find it. This is an application running under mod_perl2 and when I open,print,close a string without any newlines at the end, the resulting file ends up having a 0A at th

Re: removing hex characters from a file

2011-01-05 Thread Brandon McCaig
On Wed, Jan 5, 2011 at 8:52 PM, Brian Fraser wrote: > On Wed, Jan 5, 2011 at 10:50 PM, Brian Fraser wrote: >> On Wed, Jan 5, 2011 at 10:42 PM, jbiskofski wrote: >> I've made sure my string does not have a \n at the end. Ive chomped it >> and inspected it in several ways, if I open the resulting

Re: removing hex characters from a file

2011-01-05 Thread Brandon McCaig
On Wed, Jan 5, 2011 at 8:52 PM, Brian Fraser wrote: >> It's no problem - You should just CC beginners@perl.org for all replies. >> That way, your mails will get to everyone. AFAIK, as a general rule everybody should "Reply All" on a list like this so that everyone, including participants that are

Re: removing hex characters from a file

2011-01-05 Thread Brandon McCaig
On Wed, Jan 5, 2011 at 8:19 PM, jbiskofski wrote: > When I inspect this text file with a hex editor all the way at the end > it has 0A0A, this is messing me up because I need to perform some > openssl operations on the file and Im not getting the correct results. 0A is likely a linefeed (ASCII or

Re: removing hex characters from a file

2011-01-05 Thread Brian Fraser
On Wed, Jan 5, 2011 at 10:50 PM, Brian Fraser wrote: > > On Wed, Jan 5, 2011 at 10:42 PM, jbiskofski wrote: > Brian, thanks for the quick reply. I apologize if its not the correct > etiquete to reply directly to you, this is the first time Ive had to > recur to the mailing lists. > > I've made s