- or download this
sub IsMember {
my %Set = ( 'age' => 1, 'old' => 1, 'years' => 1);
return $Set{$_[0]};
}
- or download this
{
my %Set = ( 'age' => 1, 'old' => 1, 'years' => 1);
...
return $Set{$_[0]};
}
}
- or download this
sub IsMember {
return $_[0] =~ m/age|old|years/;
}