Lirc::Client is a Perl module that provides a simple interface to the Linux Infrared Remote Control (Lirc). The module encasuplates parsing the Lirc config file (.lircrc), openning a connection to the Lirc device, and retrieving events from the device.
SYNOPSIS
use Lirc::Client;
...
my $lirc = Lirc::Client->new( 'progname' );
my $code;
do { # Loop while getting ir codes
$code = $lirc->next_code; # wait for a new ir code
print "Lirc> $code\n";
process( $code ); # do whatever you want with the code
} while( defined $code ); # undef will be returned when lirc dev exists
Product's homepage
Requirements:
· Perl