It seems a bit quiet here at the moment. I could do with some help with CAP::AutoRunmode::FileDelegate - basically I cannot get it to work using the documentation as provided. Depending on how I configure the system I get one of the following:

All runmodes including start rm into ./runmodes folder:
Error executing class callback in prerun stage: could not evaluate runmode in file ./runmodes/start.pl: Bad file descriptor at C:/usr/local/site/lib/CGI/Application/Plugin/AutoRunmode.pm line 220.

Start runmode in main app module and all the rest in ./runmodes folder:
Error executing class callback in prerun stage: Insecure dependency in require while running with -T switch at C:/usr/local/site/lib/CGI/Application/Plugin/AutoRunmode/FileDelegate.pm line 21.

Though I cannot reproduce it at the moment, the error message seemed to depend whether I called $self as '$self = shift' or '$self = @_' - I've never seen $self called by the latter expression before, though it shows that for setup() in the documentation. Also the method themselves seem to require 'my ($app, $delegate) = @_', though $delegate isn't used again anywhere.

All *.pl files in my ./runmodes dir pass the perl -cw <filename> test, except for a 'useless use of reference constructor in void context at <filename>.pl line xx'. I've really no idea where I'm going wrong here. This is for apps run as cgi - not tried mod_perl yet. Using v4.04 of CA, 0.12 CAP::AutoRunmode and 0.08 of CAP::AutoRunmode ::FileDelegate.

--
Richard Jones
Leeds, UK
mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to