use strict; use warnings; use 5.010; use XML::Simple; my $str= 'hello'; my $xml = XMLin($str);