Bracing against the wind  
www.documentroot.com  

Thursday, February 19, 2009

IPC::Lite

Made a new perl module that creates persistent or are "shared" variables in perl.

Born out of a frustration with my previous "lexical variable" fiasco.

The module prevents that sort of bug by "globbing" all declarations in one easy syntax. While this is a bad idea for big complex projects (I provide a more standard "tie" for those), it is perfect for little CGI scripts.

One line of code...

use IPC::Lite qw(%shared);

And that %shared hash becomes persistent, shared across processes and even thread-safe.

[View/Post Comments] [Digg] [Del.icio.us] [Stumble]

Home | Email me when this weblog updates: | View Archive

(C) 2002 Erik Aronesty/DocumentRoot.Com. Right to copy, without attribution, is given freely to anyone for any reason.


Listed on BlogShares | Bloghop: the best pretty good | Blogarama | Technorati | Blogwise