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.
In reply to Re: Extra (\n)'s in the file I'm updating?
by Chady
in thread Extra (\n)'s in the file I'm updating?
by cdguitar01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |