Re: binmode in perl -p oneliner Optionen

2011-05-29 Thread Thomas Liebezeit
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.

Re: binmode in perl -p oneliner Optionen

2011-05-28 Thread Uri Guttman
> "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.

Re: binmode in perl -p oneliner Optionen

2011-05-28 Thread Uri Guttman
> "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

Re: binmode in perl -p oneliner Optionen

2011-05-28 Thread John W. Krahn
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

binmode in perl -p oneliner Optionen

2011-05-28 Thread Thomas Liebezeit
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: