@EXPORT = qw( in verify &NULL );
};
+# Give our caller SDL::Constant's stuff as well as ours.
+sub import {
+ my $self = shift;
-$VERSION = '2.2.1';
+ $self->export_to_level(1, @_);
+ SDL::Constants->export_to_level(1);
+}
+$VERSION = '2.2.2.11';
print "$VERSION" if (defined($ARGV[0]) && ($ARGV[0] eq '--SDLperl'));
-$SDL::DEBUG=1;
+$SDL::DEBUG=0;
sub NULL {
return 0;
sub in {
my ($k,@t) = @_;
return 0 unless defined $k;
- my $r = ($k ~~ @t);
+ my $r = ((scalar grep { defined $_ && $_ eq $k } @t) <=> 0);
return 0 if $r eq '';
return $r;