in reply to Ripping AUDIO CD tracks with Perl using Linux ioctl(2)
Instead of hardcoding the CDROM specific values, you might want to have a look at Linux::CDROM