> >
> > That's too much there...
> >
> > /add_\w+/ and print("Yippie!\n"), last while $_ = each %hash;
> >
> > "scalar each" is underutilized. :)
>
what happened to grep?
print "found it" if grep{$_ =~ /foo/}keys %bar
If find this more readable, allthough Randall's solution is more efficient.
Maarten.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- test presence of hash key with regexp? Birgit Kellner
- Re: test presence of hash key with regexp? Curtis Poe
- RE: test presence of hash key with regexp? Bob Showalter
- RE: test presence of hash key with regexp? Bob Showalter
- Re: test presence of hash key with regexp? register
- Re: test presence of hash key with regexp? Randal L. Schwartz
- RE: test presence of hash key with regexp? Bob Showalter
- Re: test presence of hash key with regexp? M.W. Koskamp
- Re: test presence of hash key with regexp? Randal L. Schwartz
