http://www.perlmonks.org?node_id=981400


in reply to How to close Firefox browser from perl script

Not sure that I'm understanding your problem, a little example could probably help.

pick up the 'pid' of the firefox process (see i.e getppid), then:

 kill 9, $my_firefox_pid;