Suppose I have:
directory cgi-bin/admin containing
a webapp called "test.pl"
a directory Modules,
which contains Notify.pm
which has a run mode "test"
I want to call the following under normal CGI
http://localhost/cgi-bin/admin/test.pl/notify/test
What is the simplest way to write the dispatch app? As I understand the
documentation, this should do the right thing:
#!/usr/bin/perl use strict; use FindBin qw($Bin); use lib "$Bin/Modules"; # add "Modules" dir to @INC just in case use CGI::Application::Dispatch(); CGI::Application::Dispatch->dispatch(prefix=>"Modules");But, obviously, I don't understand the documentation, because, this, and every other attempt at it produces only a "Not Found" error.
thx, -- Bruce McKenzie Business Information Graphics 212-477-4288 http://www.2MinuteExplainer.com ##### CGI::Application community mailing list ################ ## ## ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ## ## ## ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ## ## ################################################################
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.