Why not just create an AUTOLOAD parameter, and return your header, desired
application output, and footer from that function.
For example (untested, buyer beware),
$self-run_modes('AUTOLOAD' = 'header_body_footer');
sub header_body_footer {
my ($self, $rm, @rest) = @_;
...
Sorry about the attribution (*%@#*^$ Notes)
$output .= $q-header_props(-type =image/$format);
$output .= $q-blockquote();
$output .= $q-blockquote(Centerh2Graph/h2/Center);
my ($usr, $stim, $cusr, $cstim) = times;
$output .= CenterIMG
I would vote for the return value, since it is similar in behavior to the
run-modes within CGI::Application.
my $0.02,
Brian
[EMAIL PROTECTED] on 05/06/2002 02:03:34 PM
To:[EMAIL PROTECTED]
cc:
bcc:
Subject:[cgiapp] cgiapp_prerun() method
[snip]
1. Return run-mode value
2.
Is it possible that you are doing a die() anywhere in your script? I
think (IIRC) that this would bypass the teardown method.
If anyone else can remember better than I can, please correct my premise.
Brian
[EMAIL PROTECTED] on 03/31/2002 03:19:46 PM
To:[EMAIL PROTECTED]
cc:
bcc:
See the documentation for the -override switch in CGI.pm (perldoc CGI).
This was also discussed just this week on this list. Find a set of
messages with the subject runmode stickiness.
Does anyone know if there is a searchable archive to this list? Then we
could just point to
I would check permissions on the file. Can the user the web server is
running as access the database file?
You may want to run a simple perl script that walks down the tree to the
file until it fails. You may also want to change your error message from '
die Failed to open Sysmon DB;' to 'die
Could you add the filename it is trying to open to the die() call? Maybe
that will open our eyes, since I am not seeing anything obvious.
cgi-app - should this be taken off list?
Brian
[EMAIL PROTECTED] on 01/15/2002 12:06:17 PM
To: [EMAIL PROTECTED]
cc:
bcc:
Subject: RE: [cgiapp]
Under use strict, you need to predeclare all variables used. See the
documentation for the my keyword using perldoc (perldoc -f my) for more
information.
I would also recommend reading chapters 1 and 2 (as well as 3-5 and 7 as
you have time) of the O'Reilly camel book (Programming Perl - Wall,
My bad. I forgot to trim your direct address off the reply headers.
Brian
[EMAIL PROTECTED] on 01/14/2002 10:20:36 AM
To: [EMAIL PROTECTED]
cc:
bcc:
Subject: [cgiapp] Anyone having this problem??
Every msg posted to the list is being received twice in my mail. Is it with
everyone or