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


in reply to I need to write a script which should start and stop a service in a windows server

Perl is a magical tool, but it is not a mind-reader.

The first step is see if you can do it once from the command line. Perl can help automate that stuff. But you have to be able to do it first.