On Fri, 13 Jan 2006, Gerald Wheeler 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??
This is part of why I hate heredocs. Just use a regular single- or double- quoted print statement with a custom quote delimiter: print q[ <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> ]; Less fiddly, easier to read, works as well or better. Heredocs are for grizzled old shell-scripters that refuse to let go of their scars :-) -- Chris Devers DO NOT LEAVE IT IS NOT REAL -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>