It is possible to re-implement wxLaunchDefaultBrowser in perl see, something like this (untested)
use File::Which::Cached 'which'; sub OpenBrowser { my ( $url ) = @_; my @cmd = GetBrowserCmd(); system @cmd, $url; } sub GetBrowserCmd { if( $^O =~ /win32/ ){ return 1, qw'cmd /x /c start'; } elsif( $^O =~ /mac|darwin/ ){ } #~ else { my $xdg = which("xdg-open"); if( -e $xdg and -x _ ){ return $xdg; } #~ http://stackoverflow.com/questions/3743693/macro-detect-kde-or-gnom +e-in-qt4 #~ KDE_FULL_SESSION variable whereas GNOME has the DESKTOP_SESSION var +iable set to "gnome". if ( eval { $ENV{DESKTOP_SESSION} =~ /gnome/i } ){ my $exe = qx{gconftool-2 --get /desktop/gnome/applications +/browser/exec}; if( -e $exe and -x _ ){ return $exe; } } elsif( exists $ENV{KDE_FULL_SESSION} ){ my $kfmclient = which("kfmclient"); if( -e $kfmclient and -x _ ){ return $kfmclient; } } if( eval { require Mail::Cap; 1} ){ #~ http://tools.ietf.org/html/rfc1524# RFC 1524 - A User Agent Configu +ration Mechanism For Multimedia Mail Format Information for my $mailcap ( "$HOME/.mailcap", ## "$HOME/.mime.types", ## ?? outdated wxMimeTypesManager info ## File::BaseDir - Use the Freedesktop.org base directory specificatio +n qw[ /etc/mailcap /usr/etc/mailcap /usr/local/etc/mailcap ] ){ my $cmd = Mail::Cap->new($mailcap)->viewCmd('text/html +'); if( -e $cmd and -x $cmd ){ return $cmd; } } } } }
update: although it look like someone already thought of this idea, just pick one or more of the following

In reply to Re^2: LWP to open a new browser window by Anonymous Monk
in thread LWP to open a new browser window by remya

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.