in reply to perl - detect device connected

Perhaps you could use Net::DBus (which I found by searching CPAN for "hal").

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg