/Allan Peda

About Allan Peda

Allan Peda has worked as a software developer and a Linux system administrator for ten years. He previously worked as an environmental engineer for New York State and for several consulting firms. You can contact Allan at apeda@interpublic.com.

Build a Perl/CGI Voting System

2010-05-25T23:13:20+00:00 July 5th, 2005|CGI and Perl|

Many Web-deployed applications are written within elaborate database-driven server-side development frameworks such as PHP and Java™ servlets, but for simple applications (for example, where the entire dataset fits comfortably within a Web server's RAM), data persistence can be easily accomplished using locked DBM files in conjunction with the Perl MLDBM module. This article presents a real-world example -- a Web-based voting application -- that highlights the use of minimal external modules, forgoes using client-based cookies, and takes advantage of CGI attributes.