Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Perl Windows Open a Web Browser

by Jenda (Abbot)
on Apr 09, 2007 at 22:07 UTC ( #609045=note: print w/replies, xml ) Need Help??


in reply to Perl Windows Open a Web Browser

use Win32::FileOp qw(ShellExecute); ShellExecute("http://www.perlmonks.org");

This way the page gets opened in the user's default browser.

Replies are listed 'Best First'.
Re^2: Perl Windows Open a Web Browser
by Lady_Aleena (Curate) on Mar 10, 2013 at 06:40 UTC

    Jenda, OMG! Why didn't I look for this simple solution sooner?! It's been in the back of my mind for a while, and your solution worked like a charm! Lovely! :)

    Have a cookie and a very nice day!
    Lady Aleena

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://609045]
help
Chatterbox?
[shmem]: Discipulus: the <<>> operator is quite new, it is in perl5.24 for instance
[Discipulus]: ah! thanks shmem it works in strawberry 5.24
[shmem]: ah. Introduced in 5.22.0, see perl5220delta
[Discipulus]: if so the previous error is a bit misleading, anyway
[shmem]: well, previous to that << was always treated as the left-shift operator
[Eily]: or the here-doc operator
[Eily]: which is actually how it is parsed in this case
[shmem]: older versions of perl can't guess that "use of <<>> may be implemented someday" :D
Discipulus how much wise my brothers are? ;=)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-07-21 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (320 votes). Check out past polls.