[ale] For you PERL Gurus

Ryan Bridges reb at techie.com
Fri Jun 25 12:07:45 EDT 1999


Awesome, how would I make perl read in a file, preform that operation for
all occurences, and print the output?

Thanks so much again,
Ryan

----------------------------------------------------------------
Ryan Bridges <ryan at linuxgeneralstore.com>
B.Gates : quality software :: R.McDonald : gourmet cuisine
----------------------------------------------------------------

On Fri, 25 Jun 1999, Nomad the Wanderer wrote:

> 
> 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