On Fri, 07 Feb 2003 00:13:47 -0800, Paul Harwood wrote:

> The English of what I want to do is "If this remote value is not
> defined, then skip over it and proceed on to the next entry in the
> list."

The canonical ways to do it are either

foreach my $item (@list) {
    next unless defined $item;
    # do your stuff with $item
    #
}

or

foreach my $item (grep defined, @list) {
    # do your stuff with $item
    # ...
}


Best Wishes,
Janek

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to