in reply to CGI and System

I have a couple of x10 components I want to turn on via a form entering a certain string to activate them

tadman answered your question. I'll add \the obligatory mention of MisterHouse, an X10 home management system written in Perl. Therein you'll learn the secrets of speaking the X10 protocol directly, rather than having to invoke a separate program. This has performance advantages if you're polling for events.