in reply to creating an XML string
Quick & dirty:
sub encode { join '', map { /[\w\d ]/ ? $_ : '&#' . ord() . ';' } split //, shi +ft; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: creating an XML string
by Joost (Canon) on Dec 28, 2004 at 18:10 UTC | |
by PreferredUserName (Pilgrim) on Dec 30, 2004 at 19:14 UTC |
In Section
Seekers of Perl Wisdom