in reply to Looking up a hash by value
yes, wasteful and a map would probably be cool or $who_list = join '|', values %whop; and then if ($newm =~ /$who_list/ but you get the idea.foreach $newm (@newest_members) { my $online; foreach my $whos_on ( values %whop ) { $online++ if $whos_on eq $newm; } my $star = '<b>*</b>' if $online; print <<EOF; $newm $star - EOF } # foreach newm
a
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Looking up a hash by value
by tomhukins (Curate) on Feb 23, 2001 at 16:49 UTC |