Hi,
try
undef $infilestore. You have created a hash_ref, not a hash, but you are trying to clear
%infilestore, an unrelated hash.
Or, perhaps you meant
%$infilestore=undef.
That dereferences the hash and undefines it. :-)
Hope this helps
thinker
Update As
fever points out, what has been built is a hash of array refs, and not an array of hash refs. This answer does not therefore apply to this question. :-)