[ILUG] FW: Quick perl q

Breathnach, Proinnsias (Dublin) breatpro at exchange.ie.ml.com
Thu Oct 31 15:44:07 GMT 2002


Thanks ... too obvious !

P

> -----Original Message-----
> Breathnach, Proinnsias (Dublin) wrote:
> > while (<>) {
> >         for $chunk (split /\{/) {
> >                 printf("{%s\n", $chunk);
> >         }
> > }
> > 
> > Nearly does it ...
> 
> if FILE is the file,
> 
> $out=join(//,<FILE>);
> $out=~s/{/{
> /g;
> print $out;
> 




More information about the ILUG mailing list