in reply to Re^2: Problem handling complex data structure with XML::Simple
in thread Problem handling complex data structure with XML::Simple

I'm basing it on the var you dumped. If you dumped $x, replace $VAR1 with $x. If you dumped $xmlRef->{DepositoryProcessingRecord}->{MultiFileDoc}, replace $VAR1 with $xmlRef->{DepositoryProcessingRecord}->{MultiFileDoc}.

If you did dump $xmlRef->{DepositoryProcessingRecord}->{MultiFileDoc} and you are now getting this error, then $xmlRef->{DepositoryProcessingRecord}->{MultiFileDoc} no longer contains what you showed us it contained, and you'll have to adjust the code according to what it contains now.