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


in reply to Perl to rewrite simple SVG

Since SVGs are XML-based, you could use one of Perl's XML parsing modules, for instance XML::Twig or XML::Simple.