use strict; use warnings; my $browser = 'iexplore.exe'; my $arg1 = 'http://perlmonks.com'; my $cmd; $cmd = "C:/PROGRA~1/INTERN~1/$browser"; print "$cmd, $arg1\n"; print "hit any key to run command. Close IE to contine."; <>; system $cmd, $arg1; print "Back again\n"; $cmd = "\"C:\\Program Files\\Internet Explorer\\$browser\""; print "$cmd, $arg1\n"; print "hit any key to run command. Close IE to continue."; <>; system $cmd, $arg1; print "Back again\n";