Will Merrill quotes yesterday's post, which has been well answered in
the meantime.
  > > I'm having trouble writing a script that will remove the regular
  > > expression "<B>" in a text file in macperl.
  
  > >       open (INNEWSFILE, $inFile);
  ...
  > >       $newsFile = <INNEWSFILE>;
  ...
  > >       print OUTTEXTFILE $newsFile;

He says,
> I could not get your script (as originally coded) to run successfully under
> Linux or MacPerl.  I was surprised to hear it worked for you under Linux.

A Mac file (lines terminated by C-m) does not contain any Linux
newlines (C-j).  If the file was transferred binarily, the script
under Linux will slurp in the whole Mac file as one line and "work
correctly".

  Christian

Reply via email to