Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: open com port list

by rpnoble419 (Pilgrim)
on Feb 06, 2010 at 02:17 UTC ( #821689=note: print w/replies, xml ) Need Help??


in reply to open com port list

You might want to try this:
#! perl -slw use strict; use Win32::TieRegistry 0.20; # open registry node my $key= new Win32::TieRegistry "LMachine\\Hardware\\DEVICEMAP\\SERIAL +COMM\\"; # Get list of value names: my @valueNames= $key->ValueNames; foreach my $item (@valueNames) { my $valueString= $key->GetValue($item); print $valueString."\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://821689]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2016-10-01 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (577 votes). Check out past polls.