in reply to undef/re-set an array of hash references ?

You're trying to empty a hash? Try this.

%infilestore = ();