hello,
i'm creating a script in dos that parses some HTML and the following code snippet will not work properly:
my $cr = chr(13).chr(10);
my $text =~ s/$cr/<br>/g;
print $text;
i am printing to the DOS console in this case and the \n\r characters do not get removed when printed out... as a matter of fact, this snippet of code nukes the whole string and i end up with an empty string....
thanks if anyone can help. :-)
i'm creating a script in dos that parses some HTML and the following code snippet will not work properly:
my $cr = chr(13).chr(10);
my $text =~ s/$cr/<br>/g;
print $text;
i am printing to the DOS console in this case and the \n\r characters do not get removed when printed out... as a matter of fact, this snippet of code nukes the whole string and i end up with an empty string....
thanks if anyone can help. :-)