Thanks for your response (podmaster and hacker). Sorry, I wasn't very careful proof-reading my code examples. I meant to use
<b> val1 </b> for the HTML example (and I constantly mispell the word labels,
use strict; preserves my sanity when consulting the interpreter.)
I tried to use $query->autoEscape(0) to instruct the CGI.pm module not to change the HTML codes in the labels hash, but it did not work. After a bit of investigating I discovered the web server I'm using, has CGI.pm v3.01 and apparently the autoescape function has been disabled in this version. I downloaded a copy of CGI.pm v2.81 from CPAN and modified the @INC array (at the beginning of my script) to pick up the older version. Now I'm getting the results I expect.
thanks again for your help
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.