***** HELP!! ***** -> How to use Perl to format a text entry?<-

Juniper

Platinum Member
Nov 7, 2001
2,025
1
0
I want to remove blank lines (enter carriage) from a text that was inputted from a text box. How do I do that in Perl?
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
if the text from the textbox is in a scalar called $text_string, use this:

$text_string =~ s/[\n\r]//g;
 

Juniper

Platinum Member
Nov 7, 2001
2,025
1
0
Hi notfred, thanks for the great help, it solved my problem :) :)

I was not online for a while, some router problems...