[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: exists $foo[7] and delete $foo[7]



>I suppose I ought to go and ask tchrist about how one would write:

>   if (! exists($h->[$a][$b][$c]))

>without a functional exists() on arrays, huh?  :-)

Trivial and intuitive:

    if ($h && $h->[$a] && $h->[$a][$b] && defined $h->[$a][$b][$c]) 

--tom


[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]