Hi Folks
I started with a CGI::App-based module and driver like this:
=====><8=====
#!/usr/bin/perl
#
# Name:
# local-app.cgi.
use strict;
use warnings;
no warnings 'redefine';
use Local::Application;
# -----------------------------------------------
Local::Application -> new() -> run();
=====><8=====
I created what I thought would be a CGI::Application::Dispatch::Server
equivalent:
=====><8=====
#!/usr/bin/perl
use CGI::Application::Dispatch::Server;
# -------------------------------------
CGI::Application::Dispatch::Server -> new(class => 'Local::Application')
-> run;
=====><8=====
Note: This is copied from the Synopsis in the docs for
CGI::Application::Dispatch::Server, which I mention only due to the syntax
error in the docs: The line in the Synopsis, "class =>
'MyClass::Dispatch'" should terminate with a comma.
Here's the output:
=====><8=====
Can't locate object method "dispatch_args" via package
"Local::Application" at
C:/strawberry-perl/perl/site/lib/CGI/Application/Dispatch/Server.pm line
45.
=====><8=====
So: dispatch_args is mandatory. But I don't get that impression from the
docs. Any ideas?
--
Ron Savage
suppressed
http://savage.net.au/
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.