Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32:API

Status
Not open for further replies.

kqchen

Programmer
Joined
Mar 13, 2007
Messages
1
Location
US
I have installed ActivePerl 5.8.8 on my PC (c:\Perl). I need to write perl script to send command to my Serial Port. So I also downloaded SerialPort-0.19 whcih contain the SerialPort.pm. But I do not know how to install this package to my existing c:\Perl\lib. It is not work for me if just simple copy the .pm to the C:\Perl\lib\Win32 directory. It complain my script in "use Win32:API". I also downloaded API.pm (Win32-API-0.20). I have no idea to config it right. I am running in Windows "cmd" shell.
 
use ppm (Perl Package Manager) to install modules with activestate perl on windows. Open the activestate folder on the drive where you installed perl, most likely c:\activestate (or activeperl) and open the documentation folder. The documentation explains how to use ppm. It's very easy.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
You can also just open your serial port for writing

something like
open (SERIAL, "+>COM1")


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top