> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 24, 2001 12:54 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: test presence of hash key with regexp?
>
>
> >>>>> "register" == register <[EMAIL PROTECTED]> writes:
>
> >> This might be more efficient still, since the list of keys
> >> wouldn't need to be created:
> >>
> >> /add_\w+/ and print("Yippie!\n"), last while ($_, undef) =
> each %hash;
>
> That's too much there...
>
> /add_\w+/ and print("Yippie!\n"), last while $_ = each %hash;
>
> "scalar each" is underutilized. :)
Terrific! each() (scalar or otherwise) is definitely underutilized
in my case...
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]