in reply to Re: Not a HASH reference
in thread Not a HASH reference

$in is not being opened.

That seems to be very unlikely. Based on dir(...), ->children and ->openr, I am guessing this is Path::Class. Its openr throws an error if the file couldn't be opened. Even if $in were undef, there would need to be a file named tocsvfd.xml in the same path as the script, otherwise XMLin would throw an error.