Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I will reward you with 1000 thank-you's if you can help with this, because then I can go eat dinner! :)---------------------------- Original code: sub add_email_message { $subject = "New Ad"; $message = "The following ad (number $new_counter) was added. $form_data{'caption_header'} $form_data{'caption'} $form_data{'text'} ...(notice assignment to $message has not reached end quote)... ------------------------------------------ New code: sub add_email_message { $peg_nl = $form_data{'text'}; $peg_nl =~ s/\n/ /g; $subject = "New Ad"; $message = "The following ad (number $new_counter) was added. $form_data{'caption_header'} $form_data{'caption'} $peg_nl ...(notice assignment to $message has not reached end quote)... ----------------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Control chars when printing into emails
by wardk (Deacon) on Jan 08, 2002 at 05:38 UTC | |
|
Re: Control chars when printing into emails
by jarich (Curate) on Jan 08, 2002 at 09:22 UTC |