Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: How to inset "+" symbol in binary files ?

by tcf22 (Priest)
on Mar 24, 2004 at 15:07 UTC ( #339422=note: print w/replies, xml ) Need Help??


in reply to Re: How to inset "+" symbol in binary files ?
in thread How to inset "+" symbol in binary files ?

If you do it on Windows, you have to use binmode on the file handle.

- Tom

Replies are listed 'Best First'.
Re: Re: Re: How to inset "+" symbol in binary files ?
by amw1 (Friar) on Mar 24, 2004 at 15:09 UTC
    Not using windows for anything but games/shell windows to other systems and Office apps I've always been curious as to why this is the case. It seems odd to me that an OS would care what kind of file you are opening.
      Checkout the doc page for binmode. It has to do with conversion of newline characters.

      - Tom

Re: Re: Re: How to inset "+" symbol in binary files ?
by Anonymous Monk on Mar 25, 2004 at 06:48 UTC
    Always use binmode and you'll never get bit by this on any of the platforms it matters (windows is just one).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://339422]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2020-05-29 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (169 votes). Check out past polls.

    Notices?