Hmm i dont get how
/add_\w+/ and print("Yippie!\n"), last for keys %hash;
works ... the regexp will be checking $_ right?
On Fri, Aug 24, 2001 at 11:25:18AM -0400, Bob Showalter shaped the electrons to read:
> > -----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]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]