in reply to run IE and wait until his close

I don't have a windows machine handy right now, but what about:
my $status = system('iexplore');

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come

Replies are listed 'Best First'.
Re^2: run IE and wait until his close
by jbrugger (Parson) on Sep 29, 2005 at 04:20 UTC
    To finish what Thor just said:
    * update *
    Changed qx to sytsem after thor's comment. It can indeed be done in more ways, but then again, that's Perl :-)
    use strict; my $status = system('C:/PROGRA~1/INTERN~1/IEXPLORE.EXE'); print "Done with ie! after system\n"; my $ieStdOut= qx('C:/PROGRA~1/INTERN~1/IEXPLORE.EXE'); print "Done with ie! after qx\n"; my $ieStdOut= `C:/PROGRA~1/INTERN~1/IEXPLORE.EXE`; print "Done with ie! after backticks\n";
    As soon as ie quits, the next line of code is executed.

    "We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.
      qx and system are not equivalent; qx and backticks are, though. In your code snippet, the (inappropriately named) $status will contain whatever is output to standard out by internet explorer. Other than that, though, it should work. :)

      thor

      Feel the white light, the light within
      Be your own disciple, fan the sparks of will
      For all of us waiting, your kingdom will come