in reply to Re^2: How to close the default browser in perl
in thread How to close the default browser in perl

yes, of course. This may heavely depends on th OS, i think. in win7 for example there is a PID for every tab open and if you kill such PID the tab only goes in error if is a tab in a group. if you close a 'main' window via kill you kill all windows at same time, and is not a nice thing.

Please ppp note that 'default browser' is only a facility of an OS not a Perl concept.

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^4: How to close the default browser in perl
by ppp (Acolyte) on Jan 19, 2015 at 09:33 UTC
    Hey hii, Isn't it possible to write a script for Alt +F4 ?
      Hello ppp, you are mixing Perl and OS issues. Alt+F4 is an OS feature. If you are on windows you can write in Perl some wrapper around autohotkey

      HtH
      L*
      There are no rules, there are no thumbs..
      Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
        @Discipulus thanks .. Win32::Guitest will not be that much helpful. Bout could you please give me idea how using Autohotkey ? Can we write perl script for AL+F4 using hotkey ?