misterperl has asked for the wisdom of the Perl Monks concerning the following question:
I researched this , and the only answer I find is to abandon CGI.pm for this particular tag, and to just "print" the anchor. Even on perldoc.org:
...Something like this will do the trick. $myself = self_url; print "<a href=\"$myself#table1\">See table 1</a>"; <=== really?
I did find one site that implied there was a $cgi->a() method, but I found no documentation for it, nor how to close the tag with /a. One slashdot suggestion was to ^F for anchor on the CGI docs, and it came back RED. Is the practice truly to abandon CGI.pm for this requirement and instead print? I've become disciplined to use Perl CGI to generate all HTML , so this seems very unnatural.
Regards to all Monks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Use perl CGI to create <a href="url" target="t">text</a>?
by choroba (Cardinal) on Jun 08, 2022 at 13:26 UTC | |
by misterperl (Friar) on Jun 08, 2022 at 14:07 UTC | |
by Anonymous Monk on Jun 08, 2022 at 20:41 UTC | |
|
Re: Use perl CGI to create <a href="url" target="t">text</a>?
by Fletch (Bishop) on Jun 08, 2022 at 13:29 UTC | |
by misterperl (Friar) on Jun 08, 2022 at 14:06 UTC | |
|
Re: Use perl CGI to create <a href="url" target="t">text</a>?
by BillKSmith (Monsignor) on Jun 08, 2022 at 15:22 UTC |