Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Re: HTML and CGI coding

by thinker (Parson)
on Dec 09, 2002 at 15:24 UTC ( [id://218542]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://218542]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-25 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found