----- Rob Dixon spake:
> 
> SHEIKH Sajjad wrote:
> > 
> > I am trying to print the tables but I get the
> > compilation error. Error "syntax error at c:\ind.pl line
> > 23, near ""<tr><td id="disclaime" Execution of c:ind.pl
> > aborted due to compilation errors. "
> > 
> > Can someone tell why it is generating error message?
> 
> You can't put double quotes within a double-quoted string.

Well, for the record ...

   print $query->p("<tr><td id=\"disclaime\"
bgcolor=\"#999999\">");

is another ugly but effective alternative to your fine
suggestions below.

> I recommend using single quotes where you don't need to
> include control characters or interpolate variables, like
> this:
> 
>   print $query->p('<tr><td id="disclaime"
> bgcolor="#999999">');
> 
> or instead use another delimiter that doesn't appear in
> the string:
> 
>   print $query->p(qq{<tr><td id="disclaime"
> bgcolor="#999999">});

Yes, those are prettier.

-- 
pDale
"Its origin and purpose, still a total mystery."
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to