Hi!

I need to use EMBPERL_INPUT_FUNC feature (for the cutting a some
localization tags). I have written the input func and put it to startup.perl
module which is loaded at startup apache & mod_perl:

# startup.perl piece:

sub AZInput::AZInput

   {
   my ($r, $in, $mtime) = @_ ;

   open F, $r -> filename or return &HTML::Embperl::NOT_FOUND;
   local $\ = undef ;
   $$in = <F>;
   close F ;

   $$mtime = -M $r -> filename ;

   return 0 ;
   }

And i configured the httpd.conf:
<Location /ecgi>
 SetHandler perl-script
 PerlHandler HTML::Embperl
 Options +ExecCGI
 CharsetSourceEnc koi8-r
 SetEnv EMBPERL_OPTIONS 16
 SetEnv EMBPERL_INPUT_FUNC "AZInput::AZInput"
</Location>

The "apachectl confgtest" is ok but i restart a httpd then there errors are
logged:
undefined subroutine &AZInput::AZInput

MY QUESTION: How can i add my the own input subroutine to Embperl?

Thank you!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to