in reply to open com port list

You could try:

#! perl -slw use strict; use Data::Dumper; use DBI; my $dbh = DBI->connect('dbi:WMI:'); my $sth = $dbh->prepare(<<WQL); SELECT * FROM Win32_SerialPort WQL $sth->execute(); while (my( $serial ) = $sth->fetchrow) { print Dumper $serial; }

I can't confirm if it works, because I just discovered that this machine doesn't have any serial ports!

I guess if I ever need one, I'd have to buy a USB-serial adapter.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"