serial port communication

2010-04-21 Thread axr0284
Hi, I am trying to figure out how to use the serial port in perl. I am using windows with ActivePerl. This is what I have so far: [CODE] $o_rs232Port = new Win32::SerialPort($ARGV[1]) || die "Can't open $ARGV[1]: $!"; $o_rs232Port->user_msg("ON"); $o_rs232Port->baudrate(115200) || die "Can't set 1

rs232 in perl

2010-04-20 Thread axr0284
Hi, I am trying to learn how to access an RS232 port through perl. Here is what I have so far. I downloaded the win32:serial port and win32API:comm Port from here http://search.cpan.org/dist/Win32-SerialPort/ I am using windows with ActivePerl. My code is as follows: [CODE] use strict; use Win32:

regex question

2009-11-09 Thread axr0284
Hi, I am completely stumped with how to proceed with this. I have a program where the user inputs a path to a file. This is under windows xp The path can be relative ..\..\..\synthesis\int_code.psm .\program\synthesis\int_code.psm or absolute c:\command\tool\program\synthesis\int_code.psm I do

using xcopy in windows xp

2009-11-04 Thread axr0284
Hi, I was wondering if anybody can tell me what I am doing wrong. I am trying to use xcopy: system("XCOPY", "KCPSM3.EXE", $s_tempLocation, "/R /Y"); $s_tempLocation contains "c:\temp" When I run the script, I get the following error message: Invalid number of parameters The following command in