in reply to Re: Re: Re: HTML and CGI coding
in thread HTML and CGI coding

Hi hbradshaw,

as I pointed out in my earlier post, you should choose either
Tr( -attr => "value", "-foo-bar" => "baz" )

ie, attributes have leading hyphens, are quoted if contain inline hyphens, and are not surrounded by {} brackets,
or
Tr({ attr => "value", "foo-bar" => "baz" })

ie, attributes have no leading hyphen, but are contained within {} brackets, making it an anonymous hash. Strings with inline hyphens should still be quoted

The easiest way to fix your code above is to remove the {} brackets from within your Tr().

hope this helps

thinker