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

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About this Entry

This page contains a single entry by Andy Lester published on October 14, 2007 12:36 AM.

New module: WebService::FogBugz interfaces with FogBugz API was the previous entry in this blog.

Module::Starter 1.44 is first update in two years is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Technorati Profile