[ale] For you PERL Gurus
Nomad the Wanderer
nomad at orci.com
Fri Jun 25 11:26:53 EDT 1999
There is a way in perl to do multi-line matches and you could do
something like
s/\n\n/ /g;
If you can't find it, let me know.
Robert
Thus spake Ryan Bridges (reb at techie.com):
> How would I make a perl script that would go through and replace line
> feeds with spaces unless the next line is blank? chomping everything
> didn't work and I can't seem to come up with a s/ / / syntax that will get
> it right. I've trid a few things and failed rather spectacularly. I am
> using Mandrake and it comes with PERL 5.005 if that matters
> TIA,
> Ryan
>
> ----------------------------------------------------------------
> Ryan Bridges <ryan at linuxgeneralstore.com>
> B.Gates : quality software :: R.McDonald : gourmet cuisine
> ----------------------------------------------------------------
>
---------------------------------------------------------------------------
Robert L. Harris | Windows --
Senior System Administrator II | Proof Micro$oft has
at Great West Life. \_ a room full of monkeys.
http://www.orci.com/~nomad
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
FYI:
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
More information about the Ale
mailing list