Have you seen the PERL_HTML_DISPLAY_COMMAND documentation? It allows you to specify the browser to be launched.
| [reply] [d/l] |
I saw this:
If there is no specialized class yet, but your browser can be controlled via the command line, then setting PERL_HTML_DISPLAY_COMMAND to the string to navigate to the URL will make HTML::Display use a system() call to the string. A %s in the value will be replaced with the name of the temporary file containing the HTML to display.
I don't understand it. Is it trying to say I should launch the browser from command line, then use PERL_HTML_DISPLAY_COMMAND as a scalar to pass the string? What do I pass to '$browser->display'?
| [reply] |
Lets say you have a browser /usr/bin/firefox on your machine and you can start firefox simply with an URL as parameter like this: /usr/bin/firefox http://www.google.com would start firefox with google displayed.
Then you can set the environment variable PERL_HTML_DISPLAY_COMMAND to '/usr/bin/firefox %s' and otherwise leave your script unchanged.
That's it. Run your script. It will automatically call firefox and substitute %s with the name of a temporary file it just generated
| [reply] [d/l] |