in reply to Check if value exists into an array in a hash
If I understand what you're doing, I think, yes, it will do what you want.
exists($list[$num])
Will tell if there is an item of some kind, possibly undefined, at index $num in list $list.
I think $#{$arrayref} is what you're looking for with the 2nd question. EG $#{$hash_of_lists{$foo}}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Check if value exists into an array in a hash
by kennethk (Abbot) on Feb 10, 2009 at 20:09 UTC | |
by pileofrogs (Priest) on Feb 10, 2009 at 21:53 UTC |