#!/usr/bin/perluse warnings;use strict;open CDROM, '/dev/cdrom' or die "$!";ioctl CDROM, 0x5309, 1; # the ioctl number for CDROMEJECTclose CDROM;