LEGO::RCX is a perl module for communicating with your LEGO(tm) Mindstorms(tm)
RCX computer through the IR dongle. It is an object-oriented module with
methods for everything from controlling the motors, reading sensors, modifying
program variables, and getting data from the DataLog.

WWW: http://members.cox.net/quillan/lego/rcx.pm.html