Sep 6, 2001, 5:01 AM
Post #6 of 10
Re: regex to strip control chars
[In reply to]
You're right about Windows! I'm a FreeBSD newbie as well, so I've seen the light!! However various circumstances force me to HAVE to use win9x for Internet connectivity, including email. So I'm using the next-best platform - CYGWIN.
Anyway, I hate being a pain-in-the-butt, but here's the results of the "revised" scriplet:
$ ./clean-pop duke.mbx
./clean-pop: line 8: syntax error near unexpected token `s/^(?'
./clean-pop: line 8: `$.-1 ? s/^(?=From e-pop)/\n/ : binmode ARGVOUT;'
$ perl -v
This is perl, version 5.003_93
Copyright 1987-1997, Larry Wall
OS/2 port Copyright (c) 1990, 1991, Raymond Chen, Kai Uwe Rommel
Version 5 port Copyright (c) 1994-1997, Andreas Kaiser, Ilya Zakharevich
This version of Perl was the least bloated one that I could find that would fit on my HDD, and still run well. I don't think that it should make a difference though.
Any ideas? Thanks for all your input -- I sure appreciate it!! BTW, where in the Perl docs would I read up on this 'binmode' stuff and filehandles? I want to be learning something from all this, cuz it's NOT my intention to have knowledgable folks like you doing my work while I sit back and wait. I'm in for the long haul! Thanks again!
Calgary, Alberta, Canada