in reply to Ejecting the CD ROM

A different way to do it (without modules, only works on *nix boxes)
qx|/usr/bin/eject /dev/cdrom|;
You have to check the path of both your cdrom device and your eject binary. Not terribly portable but you may not care.