You could always use the HTML -title attribute. Something like:
my @title ({title=>'Option 1', value=>'Option 1 help'}, title=>'Option 2', value=>'Option 2 help'}, ... ); print checkbox_group({-name =>'my_name', -value =>['Option 1', 'Option 2'], -default =>'Option 1', -title =>"$title->{value}"} );
I'll leave the exercise up to you as to how to get break the content out of @title, but that should be easy enough. I'm using this in a few places, though not with the same idea in mind.

When you hover your mouse over the option, it will pop up the standard HTML 'tooltip' element. The added benefit of this is that you're not pushing the user off to another page or using popup windows or javascript, and it should work in text, WAP, and PDA browsers.

Note, this may not be properly supported in all browsers.


In reply to Re: checkbox_group and a link by hacker
in thread checkbox_group and a link by Ryszard

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.