in reply to Extra (\n)'s in the file I'm updating?

you don't need chomp(my $succes.... you just need to chomp the $new_text : chomp(my $new_text = $query->param( $names[1] ))

Update: In fact, it sounds as if it's PHP's fault.. Perl is just printing what it recieved, so you must take whichever \n you are adding to the text in the PHP code.


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Replies are listed 'Best First'.
Re: Re: Extra (\n)'s in the file I'm updating?
by cdguitar01 (Monk) on Jan 11, 2003 at 18:53 UTC
    You where right about it being PHP's fault, it looks like by using the include inside a textarea it formatted it incorrectly. Thanks for your help. I solved the problem by simply making the whole application in perl instead of using Perl, it works fine now.

    Thanks again
    Chris (boston,USA)