in reply to Checking for defined-ness for a list
if (! grep defined($_), @hash{ qw(A B C) } ) { # etc }
UPDATE
merlyn is exactly right. Why you shouldn't try to
answer with untested code while racing back to chatter...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 1: Checking for defined-ness for a list
by merlyn (Sage) on Jul 25, 2001 at 20:15 UTC |