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


in reply to Re^6: how to update an xml file by read data from csv file
in thread how to update an xml file by read data from csv file

I left out an 's'

$mycontainerless=~s%</container>%%gi;