you might want to try to use 'chomp' on your variable... this function
is specifically there to 'chomp off' trailing newlines
you'll often see it used as:
open FH, 'foo.txt';
while(<FH>){
chomp; #remove trailing newline
do something....
}
perldoc -f chomp for details
hth,
Jos Boumans
Stéphane JEAN BAPTISTE wrote:
> I have a variable and I want to write it into a textarea (HTML). The
> problem is when I look at the textarea in my HTML page, there is the
> text I want, plus a trailing newline.
>
> How can I delete this.
>
> My variable:
> "$texte="wazaa";"
>
> In textarea:
> "wazza
> "
>
> tks
>
> Sorry for my english
>
> steph