in reply to Re^3: Search and replace again
in thread Search and replace again
For starters, XML is a binary format. binmode definitely won't hurt anything.
binmode doesn't just disable :crlf; it disables any :encoding too.
You probably should always use binmode or equivalent (e.g. use open), either to remove layers* when you want to ensure the bytes are unmolested*, or to add some when you want to output text.
* — These may be added via $ENV{PERLIO}, via -C, or by Perl itself as the case is for :crlf on Windows.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Search and replace again
by crashtest (Curate) on Apr 20, 2010 at 18:17 UTC | |
by ikegami (Patriarch) on Apr 20, 2010 at 20:04 UTC |