kansas-city-pm-list  

Re: Sweeping Directories

david nicol
Sun, 21 Jul 2002 21:13:44 -0700

david nicol wrote:


>         $Filename = $_;
>         while (<IN>){
>                 s/\bacme\b/Fuzzball/gi;
>                 print OUT;
> 
>         };

if that doesn't work, perhaps

         $Filename = $_;
         select OUT;
         while (<IN>){
                 s/\bacme\b/Fuzzball/gi;
                 print;
 
         };
         select STDOUT

will.  Or the clearer

                print OUT $_;