eval 'Encode::from_to( $$txtref, $from, $to, Encode::XMLCREF() )'; if($@){ print "message:$@; }else{ print "Success"; }