Re: for perl wizards.

2009-10-11 Thread Gary Kline
On Fri, Oct 09, 2009 at 12:26:25PM +0200, Oliver Fromme wrote: Gary Kline kl...@thought.org wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or

for perl wizards.

2009-10-09 Thread Gary Kline
Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or script to translate hex back into ', , -- [that's a dash), and so forth. Why does this fail to

Re: for perl wizards.

2009-10-09 Thread Matthew Seaman
Gary Kline wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or script to translate hex back into ', , -- [that's a dash), and so forth. Why does

Re: for perl wizards.

2009-10-09 Thread Lars Eighner
On Fri, 9 Oct 2009, Gary Kline wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or script to translate hex back into ', , -- [that's a dash),

Re: for perl wizards.

2009-10-09 Thread Oliver Fromme
Gary Kline kl...@thought.org wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or script to translate hex back into ', , -- [that's a

Re: for perl wizards.

2009-10-09 Thread Steve Bertrand
Lars Eighner wrote: On Fri, 9 Oct 2009, Gary Kline wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or script to translate hex back into ', , -- [that's a

Re: for perl wizards.

2009-10-09 Thread Warren Block
On Fri, 9 Oct 2009, Oliver Fromme wrote: Gary Kline kl...@thought.org wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or script to translate

Re: for perl wizards.

2009-10-09 Thread Oliver Fromme
Warren Block wrote: Oliver Fromme wrote: Gary Kline wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or script to translate hex back into ', , -- [that's

Re: for perl wizards.

2009-10-09 Thread Warren Block
On Fri, 9 Oct 2009, Oliver Fromme wrote: Warren Block wrote: Oliver Fromme wrote: Gary Kline wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or script to translate

Re: for perl wizards.

2009-10-09 Thread Oliver Fromme
Warren Block wrote: Oliver Fromme wrote: Warren Block wrote: Oliver Fromme wrote: Gary Kline wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner

Re: for perl wizards.

2009-10-09 Thread Lars Eighner
On Fri, 9 Oct 2009, Warren Block wrote: On Fri, 9 Oct 2009, Oliver Fromme wrote: Gary Kline kl...@thought.org wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl

Re: for perl wizards.

2009-10-09 Thread Warren Block
On Fri, 9 Oct 2009, Oliver Fromme wrote: Warren Block wrote: Certainly \x will not help in sed; sed doesn't have it. Right, that's an annoying flaw in sed (it doesn't even support the \0 syntax for octal values, which is more standard than \x). From my perspective, sed is a tiny, gooey

Re: for perl wizards.

2009-10-09 Thread Matthew Seaman
Oliver Fromme wrote: This isn't about regular expressions at all. This is about replacing fixed strings. Fixed strings are regular expressions. Pretty unexciting ones, but perfectly valid none the less. This has been your daily pedantry minute. Cheers, Matthew -- Dr

Re: for perl wizards.

2009-10-09 Thread Matthew Seaman
Lars Eighner wrote: On Fri, 9 Oct 2009, Warren Block wrote: That's twice now people have suggested sed instead of perl. Why? For many uses, perl is a better sed than sed. The regex engine is far more powerful and escapes are much simpler. Because sed is stable and perl is getting all

Re: for perl wizards.

2009-10-09 Thread Steve Bertrand
Lars Eighner wrote: On Fri, 9 Oct 2009, Warren Block wrote: On Fri, 9 Oct 2009, Oliver Fromme wrote: Gary Kline kl...@thought.org wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be