in reply to better way to find list members?
sub member {
my $input = shift;
my $list = shift;
my @array = ();
for (@$list) {
$array$_ = 1;
}
if ($array$input) {return 1} else {return 0};
}
Would only work for numerical data so you'd need to test for that but it sounds like that was what you were doing anyway.
|
|---|