Jesse, first of all, thanks a lot for the chartexample.cgi and 
ChartExample.pm examples. I appreciate your time. It is a well-written 
library. 


Unfortunately, I still have some questions :-(.
It works perfectly when one uses functions in the run_modes().

But most of my robust sites have been developed in Object Oriented Perl.
For examle, in my helpdesk application I am working on currently, I
have a class called HD::Deparment and I  use it something like following:

    # gets the DBI instance
    my $dep = new HD::Department($dbh);

    if ( $cmd eq "list" ) {
        $body .= $dep->return_list($cgi);
    } elsif ( $cmd eq "delte" ) {
        $body .= $dep->delete($cgi->param('id'));
    } elsif ( $cmd eq "modify" ) {
        $body .= $dep->update($cgi);
    }

    $dep->save();

    print Body($cgi, $dbh, $body, $session);

    .................


You see, those run_modes() can't use my methods, no way.
So does it mean that I have to write seperate functions
for calling those methods?





---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to