A here document (like the one you wrote in your script between
"<<EOF;" and "\nEOF\n") also does interpolation, which means things
like $foo and @import will try the interpolation of $foo and @import
variables. If you don't want interpolation, just use

print <<'EOF';

instead of

print <<EOF;

It is in core documentation somewhere, even though I could not locate
it right now.

Cheers,
Adriano Ferreira

On 1/13/06, Gerald Wheeler <[EMAIL PROTECTED]> wrote:
> trying to include the following code with the abc.pl script...
>
> the snippet works in an html/css environment
>
> print <<EOF;
>
>         <style type="text/css" media="all">
>                 @import url("theta.css");
>                 @media print {
>                 body {background: white; color: black; font: 12pt Times,
> serif;}
>                 #noprnt {display: none !important;}
>                 }
>         </style>
>
> EOF
>
> The "@" symbols are misread and thus this cause errors...  escaping the
> "@" symbols doesn't work
>
> anyone with a solution??
>
> Thanks
>
> Jerry
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to