perl and serail port an win maschine


X

Xaver Biton

HI,

I'd like to use perl to comunicate via serial port with a ISDN telephon
switschboard, I'm running XP Professional and perl 5.8 activestate, but
the maschine on which the final progam should run is a win 2000 pro.

I searched the active state directory an I found a Device-SerialPort
modul, but when I try to install it I recieve a message error from the
ppm program which say :
Error: PPD for "Device-SerialPort.pm" could not be found.

I never had this problem befor. what's that?

I then serached the web for the module, and I found also somes, but
having a look in the example I saw that these modules were for perl
5.0.., my question is if is possible to install such modules on perl 5.8.

or there's another maybe beter to communicate with a serial port?

I found also some free com component, could I maybe use these with perl?

Thks.

Xaver
 
Ad

Advertisements

S

Sisyphus

Xaver said:
HI,

I'd like to use perl to comunicate via serial port with a ISDN telephon
switschboard, I'm running XP Professional and perl 5.8 activestate, but
the maschine on which the final progam should run is a win 2000 pro.

I searched the active state directory an I found a Device-SerialPort
modul, but when I try to install it I recieve a message error from the
ppm program which say :
Error: PPD for "Device-SerialPort.pm" could not be found.

I never had this problem befor. what's that?


Perhaps you specified "Device-SerialPort.pm" where you should have
specified "Device-SerialPort.ppd" or just "Device-SerialPort". (I'm no
expert on ppm.)
I then serached the web for the module, and I found also somes, but
having a look in the example I saw that these modules were for perl
5.0.., my question is if is possible to install such modules on perl 5.8.

Probably ok to install them on perl 5.8. "ppm" should refuse to install
anything that's not satisfactory with an error message about "no
suitable target installation found".
Where you see code that contains "require 5.006;" that means it needs to
be run on perl 5.6 (or later). "require 5.008;" means that it needs to
be run on perl 5.8 (or later).
or there's another maybe beter to communicate with a serial port?

On windows I would expect that Win32::SerialPort would be the best choice.

Cheers;
Rob
 
Ad

Advertisements

E

Eric Bohlman

I'd like to use perl to comunicate via serial port with a ISDN telephon
switschboard, I'm running XP Professional and perl 5.8 activestate, but
the maschine on which the final progam should run is a win 2000 pro.

I searched the active state directory an I found a Device-SerialPort
modul, but when I try to install it I recieve a message error from the
ppm program which say :
Error: PPD for "Device-SerialPort.pm" could not be found.

Device::SerialPort is Unix-only. In fact, it's a Unix port of
Win32::SerialPort, which is Win32-specific. So you should be using the
latter.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top