Does anybody know if it is possible to trap errors in Perl when they occur
and then send them with a bit of info with sendmail?
For example, if one of my web scripts messed up when someone was using it
they'd get the standard error page and I would receive an email with the
referring page and any
Hi,
Can anyone tell me how to insert a forward slash '/' into a variable when
searching and replacing.
If you look below I'm trying to search for 'booking2.html' then replace it
with 'http://xxx' etc, but I get an error when it's run.
$line=~s/booking2.html/http:www.mysite//booking2.html/g;
Hi,
I'm trying to finish my script that will read part of an html page and stick
it into an email which is sent with sendmail.
However, I'm having problems with the email that sendmail is sending out, as
it is inserting exclamation marks in the message followed by a line return.
Such as
or
Hi,
I'm trying to finish my script that will read part of an html page and stick
it into an email which is sent with sendmail.
However, I'm having problems with the email that sendmail is sending out, as
it is inserting exclamation marks in the message followed by a line return.
Such as
or
Thanks for your replies.
It does insert another character, but keeps the return too.
I have tried:
$text =~ s/\n//g;
and
$text =~ s/\r//g;
but it does the same thing, i.e. I get:
Line1
Line2
What I need is:
Line1Line2
Do you know how to get rid of the returns altogether?
Guy
--
T
Hi,
Can anyone give me the code that will replace all the carriage returns in a
variable with another character.
I am getting input from a web page and need to replace the returns with the
tag.
Thanks,
Guy
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL