in reply to Odd eval Problem

My problem is that I am pulling Perl subroutines out of the database,
Why are you storing subroutines in a database instead of in a Perl module ?

Replies are listed 'Best First'.
Re: Re: Odd eval Problem
by nontrivial (Novice) on Jun 11, 2001 at 05:57 UTC
    princepawn,

    I am storing my Perl in a database because I am storing EVERYTHING in the database. I have broken all HTML formatting aspects down to where I can store in a table. I store arbitrary SQL queries as entries in a database. I also provide session and value latencies.

    The reason I'm doing this is that I am tired of reinventing the wheel (well, swiping my old code anyway) everytime I build a web application. It also bothers me to mix HTML code with Perl when I come back a few months later and I'm trying to figure out what's going on. When I am done I will be able to whip up a complex web page in a few minutes, draw it with a standard API, and then handle the logic (and only logic) with Perl.

    You probably don't see the advantage of something like this, and I'm not going to try to convert you. But I have used a system like this before (TCL/Sybase instead of Perl/MySQL) and I know from experience that it is a powerful and efficient way to create websites.

    James