Bowen, Bruce wrote:
I know how to get rid of the carriage returns using s/\n//g,
> but haven't had any luck in finding the way to get rid
> of the line feeds following the |fs.

Sorry, \n means a line feed. Try:

  s/\n//g; # Remove line feeds
  s/\r//g; # Remove carriage returns

See:
perldoc perlre
perldoc perlretut
perldoc perlrequick


--

Just my 0.00000002 million dollars worth,
   --- Shawn

"Probability is now one. Any problems that are left are your own."
   SS Heart of Gold, _The Hitchhiker's Guide to the Galaxy_

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is available at http://perldoc.perl.org/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to