-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Sep 09, 2006 at 10:55:57PM -0600, Joshua Shapiro wrote: > Hello, > > I have inherited an application that makes use of mod_perl. I have > never used it before and am currently trying to understand it. I am > trying to setup a simple CLI utility that will allow me to test the > functionality of the website offline and eventually set up unit tests. > I am trying > > #!/usr/bin/perl > > use MyApp; ^^^^^^ > use Apache::FakeRequest; > > $req = Apache::FakeRequest->new(); > MyApp::handler($request); ^^^^^^^ > > but the output I keep getting is, [...] > <pre>Undefined subroutine &MyApp::handler called at ./test.pl line 8. [...]
For this to work there should be a function "handler" defined in the module "MyApp.pm". Seems there is'nt? HTH - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFFA6JRBcgs9XrR2kYRAhrTAJ9ewXkOcWSs6iCy6JFDTTBgESwpvACeJ6/B jCWed6wkux3ad5mixfjGAMM= =7+OI -----END PGP SIGNATURE-----