in reply to Re: Array question
in thread Array question

As pointed out by Corion, undefining an array element and then continuing to iterate over it again and again is highly problematic, and probably a Bad Thing™.

However, if this is really necessary, it is not necessary to maintain a separate array index, which can be highly confusing. The element in question is already an alias and can be undefined by an  undef $currentlocalfilelist; statement.