Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: creating an XML string

by PreferredUserName (Pilgrim)
on Dec 28, 2004 at 18:05 UTC ( [id://417806]=note: print w/replies, xml ) Need Help??


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
      Well, they don't call it "quick and dirty" because it's elegant and complete.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://417806]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found