That error is simply saying that your subroutines, &my_start and &p, aren't
defined in the current scope.  The "Apache::ROOT::vswap..." is the package
name that Apache::Registry (or similar module, sounds like maybe EmbPerl in
your case) generated when it compiled your script.

Check to make sure that you are exporting the sybols from your perl module
("perldoc Exporter") and importing it in your script ("perldoc -f use").

- Kyle

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Manjrekar Pratiksha
> Sent: Friday, November 16, 2001 1:05 AM
> To: '[EMAIL PROTECTED]'
> Subject: Apache-mod_perl
>
>
> Hello all,
> We are facing a problem while configuring perl-module in Apache webserver
> in the Solaris environment.
> The Server configuratin is as follows:
> OS : Solaris 2.7 SunOS 5.7 Sparc machine.
>  Apache/1.3.20 (Unix) mod_fastcgi/2.2.10 mod_perl/1.26
> We have installed a VSWAP1.1.6 which is a WAP test suite. The
> main file in
> this suite is index.eml
>
> 1.> When we execute the index.eml file , we get the following error
> " String found where operator expected" wherever a subroutine was used.
> As suggested by a member of the mod_perl group, we inserted
> parenthesis for
> parameters of the subroutines.
> 2.>This solved the error, but there was another error :
> "Undefined subroutine
> &Apache::ROOT::vswap1_2e1_2e6::index_2eeml::my_start
> called at /apps/vswap1.1.6/index.eml line 12".
> This could be solved by declaring "package main" in the perlmodule (.pm)
> file and referring all subroutines as (package name)::
> (subroutine) in the
> .eml file.
> refence url: http://perl.apache.org/dist/mod_perl_traps.html  (Section:
> Perl Modules and Extensions )
> 3.>This gave another error
> "Undefined subroutine &Apache::ROOT::vswap1_2e1_2e6::index_2eeml::p "
> However this error could not be solved by the method in point (2)
>
> Basically, we feel that there should not be any need to change the source
> code , the reason being we have installed the same test suite on a Linux
> machine.
> and it works fine there without any changes to the source code.
> Configuration of Linux:
> Apache/1.3.12 (Unix) (SuSE/Linux) ApacheJServ/1.1.2 mod_fastcgi/2.2.2
> balanced_by_mod_backhand/1.0.8 DAV/1.0.0 mod_perl/1.24 PHP/3.0.16
>
> Any quick help in this regard would be highly appreciated.
>
> regards,
> Pratiksha,

Reply via email to