Skip to content

Commit

Permalink
Removed ~~ for 5.8.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Thakore committed Aug 19, 2009
1 parent db3da11 commit 5c44eb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions META.yml
Expand Up @@ -10,6 +10,7 @@ resources:
build_requires:
Module::Build: 0.22
Test::Simple: 0.47
YAML: 0.68
configure_requires:
Module::Build: 0.34
provides:
Expand Down Expand Up @@ -62,10 +63,10 @@ provides:
file: lib/SDL/Tutorial.pm
SDL::Tutorial::Animation:
file: lib/SDL/Tutorial/Animation.pm
SDL::Tutorial::Drawing:
file: lib/SDL/Tutorial/Drawing.pm
SDL::Tutorial::Images:
file: lib/SDL/Tutorial/Images.pm
SDL::Tutorial:Drawing:
file: lib/SDL/Tutorial/Drawing.pm
SDL::Video:
file: lib/SDL/Video.pm
SDL_perl:
Expand Down
2 changes: 1 addition & 1 deletion lib/SDL.pm
Expand Up @@ -68,7 +68,7 @@ sub NULL {
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;

Expand Down

0 comments on commit 5c44eb3

Please sign in to comment.