in reply to Re: HTML::Display help needed
in thread HTML::Display help needed

Thanks for the reply. It shows:

# Displaying HTML using HTML::Display::Dump at ...

I guess that means it did not find a browser. I saw the environment variables but it was not clear what to set them to (a path?). Also, how do I determine the OS so I know what to set the path to?

Replies are listed 'Best First'.
Re^3: HTML::Display help needed
by Corion (Patriarch) on Aug 21, 2008 at 10:24 UTC

    I'm always trying to improve my documentation. Currently, it says:

    If HTML::Display already provides a class for the browser you want to use, setting PERL_HTML_DISPLAY_CLASS to the name of the class will make HTML::Display use that class instead of what it detects.

    Maybe you can help me improve the documentation so it becomes clearer what to put in there.

      I'd be happy to try. I am not a perl guru so I don't really know what it means by 'class' in that context. What I would expect logically, is a variable or some way to determine the path to the desired browser that should be launched. That is what seems missing to me in the documentation. I don't know how to tell it to use IE or Firefox or whatever the default browser is. I assumed (yes this is a classic case of what that makes of 'u' and 'me') it had a way to determine it from the OS settings but apparently not. If that is the case then that complicates things as I believe finding the default browser would be a platform dependent function and better left as a configuration issue when using HTML::Display.

        Have you seen the PERL_HTML_DISPLAY_COMMAND documentation? It allows you to specify the browser to be launched.

      The built-in OS class list of the module seems to be pretty small, no Fedora, Suse or Solaris for example (expandability is great when the script writer using your module knows where it will run, but if he wants an os-independant script, he wants as much built in as possible). I guess it was your intention to only look for THE one browser on any OS, sadly that leaves out those OS where there is no concept of THE browser. Otherwise a class array instead of the class hash would have been better to prioritize the available browsers

      Is there a way to find the standard browser on Suse or newer Solaris? Checking for firefox,mozilla,netscape or lynx on the PATH might be the only way to realiably find something on every version of these OS

      Sorry if that sounds too critical or nitpicky, otherwise a great little module