This also doesn't answer your question, but rather than checking if there's a "next element" in your array, check that your index hasn't gone beyond the end of your array:
$next_version_key = $ordered_list->[$i+1]->[0] if $i+1 < @{$ordered_li +st};
In reply to Re: Array mysteriously growing
by duff
in thread Array mysteriously growing
by AntsPants
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |