in reply to Printing from a browser

If you have JavaScript enabled in the browser, you could insert a
<script type="text/javascript"> window.print(); </script>

before or after the closing </body> tag, using i.e. HTML::Parser for this task, before sending it to the browser.

Alternatively, change the opening <body> tag to

<body OnLoad="window.print()">

Whether the page is sent straight to the printer or a Printing Dialog is opened depends on the implementation of that JavaScript method in the respective browser. Doesn't work on MSIE 4, MSIE 5 on Mac.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}