CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Stripping out just the return character

 



seriousfun
Novice

Dec 7, 2000, 12:16 AM

Post #1 of 2 (647 views)
Stripping out just the return character Can't Post

I have been through all the postings of striping HTML etc but I can't work out how to strip just the return character from a text area. Can anyone please help?


sleuth
Enthusiast

Dec 7, 2000, 12:40 AM

Post #2 of 2 (647 views)
Re: Stripping out just the return character [In reply to] Can't Post

 
$text =~ s!\r!!g;

\r = carrage return.

Too tired to say more,

Good Night,

Sleuth

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives