projects
/
sdlgit/SDL_perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
c668d2c
)
More fixes for SDL::in() usage
Kartik Thakore [Mon, 17 Aug 2009 09:14:29 +0000 (
05:14
-0400)]
lib/SDL.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SDL.pm
b/lib/SDL.pm
index
7a7d346
..
b7fb596
100644
(file)
--- a/
lib/SDL.pm
+++ b/
lib/SDL.pm
@@
-61,7
+61,10
@@
sub NULL {
sub in {
my ($k,@t) = @_;
return 0 unless defined $k;
- return $k ~~ @t;
+ my $r = ($k ~~ @t);
+ return 0 if $r eq '';
+ return $r;
+
}
sub verify (\%@) {