> -----Original Message-----
> From: Birgit Kellner [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 24, 2001 11:14 AM
> To: [EMAIL PROTECTED]
> Subject: test presence of hash key with regexp?
>
>
> Is it possible to test the presence of a hash key with a regexp?
> something like:
> if (exists ($hash{/add_\w+/})) { print "yippie!\n";}
>
> I know that this doesn't work, but is there something similar
> that does?
/add_\w+/ and print("Yippie!\n"), last for keys %hash;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]