Reverend Phil has asked for the wisdom of the Perl Monks concerning the following question:

Hi folks,
I've done quite a bit of digging on here, CPAN, ActiveState, and in general on the web. I'm having difficulty finding anyone who is successfully using Perl on a Win32 system to grab information from a CD in their CD-ROM drive, and convert it into a CDDB protocol 'ID' string. There's a CDDB.pm module which can do all of the snagging and parsing after you've gotten an ID, and there's even a module called CDDB_get which will grab the table-of-contents, and create a CDDB ID, but while Activestate mentions that the module supports Windows, I cannot get it to do so. It's possibly that I'm missing something with the 'CD_DEVICE' part of the config in this, but I can't for the life of me figure out what the Win32 equiv of /dev/cdrom might be, other than 'x:/'.

I'm at a complete loss now, and am not up to the task of hacking into whatever internal hubbub is involved in doing low-level system calls to devices on a PC - or whatever tomfoolery is involved in developing Win32 support for CDDB_get =)
Any info, kicks in the right direction, or success stories would be a great help.

-=rev=-

Replies are listed 'Best First'.
Re: CDDB/id on Win32
by Moonie (Friar) on Feb 05, 2002 at 23:24 UTC
    I'm not going to be of much help, but it seems that you are not the only one whose had problems. Take a look at this. Hopefully this will help a bit. Good Luck!

    - Moon
      Thanks Moonie =)
      You set me off in a fresh direction. Turns out that you can get a DLL off of Sourceforge right here. That might help me for the short term, and at the same time it'll make me learn how to call outside DLL's via Perl. I'm sure it's possible, and I'll get a chance to do it. I dug around on Sourceforge and learned that there's a very piddly Perl presence (or pPp if you will, which sort-of looks like Java, php, and vbs sticking tongues out at us).

      Amongst the pPp on that site, there are three projects that are simultaneously working towards goals larger than my little sub-goal ;) One of them currently is marked as 'OS Independent' and near completion, so I'm hoping for the best there.

      Off to figure out Win32::API and give it a whirl =)

      -=rev=-