PERL printing binary to files - cr lf
I am not a regular PERL programmer and I could not find anything about
this in the forum or few books I have.
I am trying to write binary data to a file using the construct: print
filehandle $record
I note that all of my records truncate when an x'0A' is encountered so
apparently PERL uses the LF as and end of record indicator. How can I
write the complete records, using for example, a length specifier? I am
worried about PERL tampering with other binary "non printables" as well.
thanks Fritz
No comments:
Post a Comment