in reply to creating an XML string
Quick & dirty:
sub encode { join '', map { /[\w\d ]/ ? $_ : '&#' . ord() . ';' } split //, shi +ft; }
In Section
Seekers of Perl Wisdom