Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Device::Modem Find which Port Modem is connected to

by anshumangoyal (Scribe)
on Jun 23, 2012 at 09:19 UTC ( #977955=perlquestion: print w/replies, xml ) Need Help??
anshumangoyal has asked for the wisdom of the Perl Monks concerning the following question:

I want to use Device::Modem to connect to my Serial Modem. The problem i am facing is to find which port my modem is connected to. I am using Windows XP and found no way to check which port my Modem is connected to. Since this is going to be performed on many systems, it is practically impossible to go to each system and find that manually using Device Manager. I tried to query all Com ports using Device::Modem, but I am getting error: The system cannot find the file specified. can't open device: \\.\COM4 Any help will be highly appreciated!
  • Comment on Device::Modem Find which Port Modem is connected to

Replies are listed 'Best First'.
Re: Device::Modem Find which Port Modem is connected to
by Anonymous Monk on Jun 23, 2012 at 10:00 UTC
      Many Thanks! it worked like a charm.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://977955]
Front-paged by Corion
help
Chatterbox?
[ambrus]: Corion: really? Does that mean the Prima watcher objects behave as handles that stop the watcher when they're destroyed, just like AnyEvent expects?
[ambrus]: "all the bugs" -- hehe, good luck
[ambrus]: Corion: what I don't understand is, if you make a one-shot AnyEvent timer with short timeout, does this code guarantee that the Prima timer can't queue two timeout events before invoking any of them?
[ambrus]: Because that could break AnyEvent code, which is why I added a guard.
[ambrus]: (It might be easier to use the callback scalar as a guard, as in $c and &$c(); $c = ();)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2016-12-09 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (149 votes). Check out past polls.