Ask a Question related to PERL Beginners, Design and Development.
-
karl morgan #1
web form newlines converted to <BR>
I wish to use a perl cgi script to convert the new line characters
from a text area in a web form into the HTML <BR> tag. I am a novice
so just the simplest way please. I have a knowledge of loops, arrays,
strings and functions. I could do this in C++ with my eyes closed but
the subtle differences between the languages are preventing this one.
While I'm on, I know that $var = @array; stores the size of the array
into the variable but how do you directly access the size, say for a
'for' loop that wishes to terminate at the end of the array or does
perl just stop itself?
Karl
karl morgan Guest
-
xml_parse_into_struct and newlines
I found out that if I have xml which contains elements with CDATA with new lines (\r\n or just \n or just \r) and i do a xml_parse_into_struct on... -
Newlines in db2 shell
If you are using a standard db2 command window then the you don't have to do anything as the line wraps to the next line and the db2 command... -
Split NewLines
Like this... $string="1 blabla"; my @lines = split("\n", $string); # testing... print "1: $lines\n"; print "2: $lines\n"; -
[PHP] Replacing newlines (\n) with smething else
On 13 Jul 2003 17:01:24 -0400, you wrote: nl2br() in the specific case But in the general case, your code looks ok to me. echo... -
Replacing newlines (\n) with smething else
"Jason Giangrande" <jason@giangrande.org> wrote in message news:1058130084.12830.5.camel@dragon.giangrande.org... why not just: $article =...



Reply With Quote

