This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: Perl Problem in RedHat 6.2
From: Derek Tattersall <tatters@mindspring.com>
Date: Wed, 12 Apr 2000 07:00:04 -0400
I am trying to read data from an Audio CD in a SCSI CD drive in RedHat
6.2.
This script worked for me in 6.1, but I went and installed 6.2, and now
it is
broken. I get the following error:
open /dev/cdrom: Wrong medium type
This error does not occur if I have a data CD in the drive. Only audio
CDs.
Both RedHat 6.1 and 6.2 are using Perl version 5.005_03.
Does anyone out there have any Ideas what changed from RedHat 6.1 to
6.2?
############################ Script ############################
#!/usr/bin/perl
$cd_drive = "/dev/cdrom";
require 'errno.ph';
require 'linux/cdrom.ph';
open(CDROM, $cd_drive)or die "open $cd_drive: $!\n";
close CDROM
or warn "close CDROM: $!\n";
###################################################################
===