updated Cdrom and Event and SDL pods,
[sdlgit/SDL_perl.git] / lib / SDL / Cdrom.pm
index 3f2dc36..9adc3ef 100644 (file)
@@ -30,6 +30,8 @@
 
 package SDL::Cdrom;
 use strict;
+use warnings;
+use Carp;
 
 BEGIN {
        use Exporter();
@@ -44,7 +46,7 @@ sub new {
        my $self;
        my $number = shift;
        $self = \SDL::CDOpen($number);
-       die SDL::GetError() if ( SDL::CD_ERROR() eq SDL::CDStatus($$self));
+       croak SDL::GetError() if ( SDL::CD_ERROR() eq SDL::CDStatus($$self));
        bless $self,$class;
        return $self;
 }
@@ -54,7 +56,7 @@ sub DESTROY {
        SDL::CDClose($$self);
 }
 
-sub CD_NUM_DRIVES {
+sub cd_num_drives {
        return SDL::CDNumDrives();
 }
 
@@ -153,7 +155,7 @@ SDL::Cdrom - a SDL perl extension for managing CD-ROM drives
 
 =item *
 
-C<CD_NUM_DRIVES>.
+C<cd_num_drives>.
 
 =back
 
@@ -167,7 +169,7 @@ whereas 0 is the first drive etc.
 
 =head1 METHODS
 
-=head2 CD_NUM_DRIVES()
+=head2 cd_num_drives()
 
 Returns the number of CD-ROM drives present.