Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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
[sierpinski]: The Total Eclipse of the Heart... err I mean Sun?
[thezip]: Yup. Totality passes over my house in Salem.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2017-08-16 16:24 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (269 votes). Check out past polls.