in reply to XML::Simple read only mode

Which parser do you use?

When using XML::Parser to parse the file, XML::Simple uses open(my $xfh, '<', $filename), so the file handle only allows reading.

Other parsers open the file themselves, so you'd have to check the parser being used. They surely open the file for reading as well.