Re: PERL script
First question I have is what is the ultimate goal? Visual Basic is a Windows only language, and Perl is most at home on a Unix/Linux/FreeBSD system. Are you trying to port the functionality of a Windows program to a different operating system? Are you definitely set on using Perl?
If you are trying to port the program, and you are willing to spend money for a solution, you might try REALbasic (
www.realbasic.com) which has options allowing you to develop for Windows, Mac OS, and Linux, and is a very similar language to VB. I've done quite a bit of serial port programming in REALbasic.
If it is Perl you want then what OS are you developing for? Does the program need a GUI (since your VB program had one)? There are several GUI options for Perl. One of the most common is TK Widgets (Perl/TK).
Accessing the serial port is probably going to depend on the OS as well. I think you could use the Perl open() function, which works like the C function fopen() and can be used to access the serial port on *NIX systems.
Hope this helps to start off with.