
winfinit
User
Oct 30, 2007, 10:13 PM
Post #5 of 11
(559 views)
|
|
Re: [ajr121] delete a new line character at the end of a string
[In reply to]
|
Can't Post
|
|
Thanks I had :- $strg = "abc\nefg\n"; $strg = chomp($strg); #this is incorrect, you dont have to reassign anything, just use chomp($strg); and that will place processed result back to your $strg variable print $strg; This gave 1 not abc\nefg $strg = chomp($strg); #this is incorrect, you dont have to reassign anything, just use chomp($strg); and that will place processed result back to your $strg variable
|