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: Advanced:
Help In Putting Away A \n Sign...

 



yotam_k
Deleted

Jan 17, 2001, 9:44 AM

Post #1 of 2 (985 views)
Help In Putting Away A \n Sign... Can't Post

Hay EveryOne !
Could AnyBody Help My In Putting Away From "$mystring" The \n Sign ?
I'll Thank You Very Much !
Yotam.



perlplexer
Deleted

Jan 17, 2001, 11:44 AM

Post #2 of 2 (983 views)
Re: Help In Putting Away A \n Sign... [In reply to] Can't Post

Where is your "\n" sign, as you call it, in particular?
Is it at the end of the string?

Anyway,

1) chomp $mystring; # this will remove "\n" at the end of the string

2) $mystring =~ tr/\n//d; # this will remove all "\n"s in the string

--perlplexer


 
 


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

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