http://www.perlmonks.org?node_id=928516


in reply to Re^2: How can I replace a line (tag) in an XML file?
in thread How can I replace a line (tag) in an XML file?

i´m sorry - sunken in my own projects i should probably post full storys ;-)
sub load{return%{XML::Simple->new(ForceContent=>1)->XMLin($_[0])};}#lo +ads xml sub save{XMLout($_[1],OutputFile=>$_[0]);1;}#saves hash to xml
but your still mostly right.. for me it works fine..
$perlig =~ s/pec/cep/g if 'errors expected';