String::Smart creates strings that know how to escape themselves
Andy Armstrong has released String::Smart, which provides some syntactic sugar and magic to make strings that translate themselves into various encoding forms, so you can easily switch between HTML encodings and SQL escaping and so on. Strings encoded as HTML encoded know that fact, and can de-encode themselves behind the scenes, for example.
Not sure I like the interface, but there's some cool ideas running around there.
0 TrackBacks
Listed below are links to blogs that reference this entry: String::Smart creates strings that know how to escape themselves.
TrackBack URL for this entry: http://perlbuzz.com/cgi-bin/mt/mt-tb.cgi/186
Leave a comment