>>>>> "JWK" == John W Krahn <jwkr...@shaw.ca> 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. 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. And it you are only JWK> really replacing one character with another then you should probably JWK> use transliteration instead: tr/A/B/. i noted that in my other post. the OP's would do one substitution per line with the normal -p mode but only one globally with the -0777 slurp mode. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/