in reply to Re: Problems printing to browser
in thread Problems printing to browser

Ok, you were right, that is what the problem was. I didn't know print $cgi was deaing with print $query, never would have guessed that.

I have another problem. The script runs fine. In the browser it prints as per you'd expect, but in the email it prints something like:

<meta name="author" content="Aaron"><br> <meta name="keywords" content="Apples"><br>
It literally prints <br> in the email. Do you know of a way I can make it print to broswer one tag per line but somehow only print the tags in the email?

Thanks so much!

sulfericacid

Replies are listed 'Best First'.
Re: Re: Re: Problems printing to browser
by tachyon (Chancellor) on Nov 30, 2002 at 02:10 UTC

    Sure just use a s/// regex to remove the <br> tags.

    my $text =<<TEXT; foo<br> bar<br> baz<br> TEXT print $text; # to browser $text =~ s/<br>//g; print $text; # to email

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print