Elliott has asked for the wisdom of the Perl Monks concerning the following question:
I am creating HTML pages by reading templates from a file, running a few regexps to personalise the page and then printing.
In some of these templates, our designers have included <A NAME="fred"> tags. I would like to be able to jump to the anchors.
The only way I can think of reminds me of sledgehammers and nuts: write the resulting page to a temporary and then
print "Location: tempfile.html#fred\n\n";
Is there a better way?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Simulating internal anchors
by merlyn (Sage) on Dec 01, 2002 at 15:03 UTC | |
by Elliott (Pilgrim) on Dec 01, 2002 at 23:22 UTC | |
by merlyn (Sage) on Dec 02, 2002 at 00:10 UTC | |
|
Re: Simulating internal anchors
by Elliott (Pilgrim) on Dec 01, 2002 at 10:14 UTC | |
|
Re: Simulating internal anchors
by mt2k (Hermit) on Dec 02, 2002 at 00:46 UTC | |
by Elliott (Pilgrim) on Dec 02, 2002 at 15:50 UTC | |
by Elliott (Pilgrim) on Dec 02, 2002 at 16:45 UTC |