> -----Original Message-----
> From: Mark Jervis Sr. [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 07, 2001 4:35 PM
> To: [EMAIL PROTECTED]
> Subject: Here is how I am trying to use the #
> 
> 
> 
> This is the block of code giving me errors when I am trying 
> to use the #
> 
> I am also getting an error saying missing right bracket.
> 
> This is the only if statement in my code so maybe this will 
> help those of
> you who tried to help see the problem.
> 
> 
> 
> if($textcolor eq custom)
>         {
>     print " text=\"/#$txtcustom\"";
>         {

This left brace should be a right brace. That's your problem. The hash
mark is fine, since it's in quotes.

> else
> {
>     print " text=\"$textcolor\"";
>  }         

Additional comments:

In the line

   if($textcolor eq custom)

What is custom? Is that a function or a string? If a function,
write custom(), if a string, quote it like 'custom'. You should
always add the line "use strict;" to catch this kind of thing.

With this line:

   print " text=\"/#$txtcustom\"";

You can avoid escaping the quotes by using the qq() quoting
mechanism, a la:

   print qq[ text="/#$txtcustom"];



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to