[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Erasing redundant newlines, spaces and tabs
- From: Xose Manoel Ramos <nospam@thanx>
 
- Date: Tue, 14 Dec 1999 16:06:34 +0100
 
I am trying to do this. 
Origin:
   This
      is
       just
         a 
          test
Result:
 This is just a test
I am using this little ePerl code:
<define-container clean>
<:
 $kk="%body";
 $kk =~ s/[\n\s]+/ /g ;
 print $kk;
:>
</define-container>
Is there a better, safer or faster way to do this? 
-- 
Saudos:
><ose        xmanoel@bigfoot.com   (Vigo/Galicia/Espaņa)
         http://pagina.de/xmanoel/
         http://w3.to/mikkeli/
12/14	(12/14/1946) NYC voted to be the UN headquarters. 
12/14	(12/14/1503) Nostradamus (born Michel de Notredame), French prophet. 
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com