%expand%
use IPC::Lite qw(%shared);| Bracing against the wind | |
| www.documentroot.com |
|
Thursday, February 19, 2009
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] |
|
Bloghop:
|
Blogarama
|
Technorati
|
Blogwise