First the documentation, which says:

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.

That originally sounded to me like the variable should be set to "http://www.whatever.com" and it conflicted with the implication of the variable name. Now that I understand how it is supposed to work it makes perfect sense. I've done a lot of technical writing in my career and the the biggest challenge is writing something for someone that doesn't have the understanding of the writer. How about this:

If there is no specialized class yet, but your browser can be controlled via the command line, then setting PERL_HTML_DISPLAY_COMMAND will cause HTML::Display to use a system() call. Set the variable to the path of the browser command, to launch the browser. To load the temp file generated by HTML::Display, append whitespace and '%s' to the PERL_HTML_DISPLAY_COMMAND string.

Example (Cygwin):

$ENV{'PERL_HTML_DISPLAY_COMMAND'}='run "C:\Program Files\Mozilla Firefox\firefox.exe" %s';

Examples are my best friend. However, you might want to use a Unix command line rather then Cygwin as the 'run' might confuse the reader. Now on to my problem:

IE will not launch even that way for some reason. It appears to try to load it but no joy. Firefox does seem to work so while that gives me something to work with (I'll have to play with the quotes, spaces in path names are a headache), I still need to figure out what the deal is with IE. It seems like more of a Cygwin problem then a perl problem at this point.

Thanks.

In reply to Re^10: HTML::Display help needed by gw1500se
in thread HTML::Display help needed by gw1500se

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.