in reply to Bizarre copy of ARRAY in leave at...

Along the same lines as BrowserUK points out, my $last_index = $#$listref; works fine.

After Compline,
Zaxo