Re: [MacPerl-AnyPerl] Re: macperl-anyperl Digest 19 Jun 2001 15:30:19 -0000 Issue 8
[email protected] (Christian Brechbuehler) Wed, 20 Jun 2001 13:54:14 -0400 (EDT)
| Newsgroups | perl.macperl.anyperl |
|---|---|
| Message-ID | <[email protected]> |
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