Thank you, John and Uri.
I got a hint to use -e "binmode ARGVOUT" and it did the trick for me!
JWK> BTW your substitution operator replaces only the first 'A' it
finds
JWK> with 'B'. If you want to replace all 'A's with 'B's then you
have to
JWK> use the /g option on the substitution: s/A/B/g.
> "JWK" == John W Krahn writes:
JWK> perl -i~ -0777pe "s/A/B/" file.pdf
that won't help as line ending hacking occurs on all text files on
winblows if you use stdio which that does. it isn't only on line
oriented operations. your open idea would work here if it worked on the
other one.
> "TL" == Thomas Liebezeit writes:
TL> I'm triying to do some substitutions on an pdf file.
TL> perl -p -i~ -w -e "s/A/B/;" file.pdf
TL> This works as intended, except: perl adds 0x0D (Windows \n) :-/
TL> as a HEX diff shows.
TL> How can I work around this? Is there something
Thomas Liebezeit wrote:
Hello,
Hello,
I'm triying to do some substitutions on an pdf file.
perl -p -i~ -w -e "s/A/B/;" file.pdf
This works as intended, except: perl adds 0x0D (Windows \n) :-/
as a HEX diff shows.
How can I work around this? Is there something like binmode()?
You shou
Hello,
I'm triying to do some substitutions on an pdf file.
perl -p -i~ -w -e "s/A/B/;" file.pdf
This works as intended, except: perl adds 0x0D (Windows \n) :-/
as a HEX diff shows.
How can I work around this? Is there something like binmode()?
cheers
Thomas
--
To unsubscribe, e-mail: