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

perly_newbie has asked for the wisdom of the Perl Monks concerning the following question:

Hi can any one please let me know how to get a list of all open com ports? I mean I go to the My Computer>Properties>Harware>device manager>ports to find the open com ports. And use one of them for communication to my device. Is there a way to automatically get the list of all open com ports? If so Please let me know. Thanks.