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