Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

run IE from the Perl script

by Misha (Acolyte)
on Jan 30, 2008 at 20:24 UTC ( #665203=perlquestion: print w/replies, xml ) Need Help??
Misha has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks,

I need to run IE from the Perl script and pass the port as an argument.
How can I do it?

Many thanks

Replies are listed 'Best First'.
Re: run IE from the Perl script
by Errto (Vicar) on Jan 30, 2008 at 20:51 UTC
    See Re: How to start default browser on Windows?. Note that this opens the user's default browser, rather than IE necessarily, but I suspect most of your users would consider that a good thing. system works too, but IIRC it pops up a console window (unless you're already in one), which may be unseemly.
      Many thanks,
      It what I was looking for.
Re: run IE from the Perl script
by nikosv (Chaplain) on Jan 30, 2008 at 20:47 UTC
Re: run IE from the Perl script
by Popcorn Dave (Abbot) on Jan 30, 2008 at 20:37 UTC
    I'm not sure that this is the most efficient way to do it, but this seems to work.

    use strict; system (1,'start');

    I tested it and it opened a new tab for me in Firefox, but that's my default browser, so if IE is your default, it should be fine.


    Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

    I would love to change the world, but they won't give me the source code

Re: run IE from the Perl script
by renodino (Curate) on Jan 30, 2008 at 20:58 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://665203]
Approved by Popcorn Dave
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-12-11 08:28 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (288 votes). Check out past polls.