perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Undefined subroutine &HTML::Embperl::DOC::_6::verifysession
Date Fri, 27 Dec 2002 16:40:23 GMT
Hi,

take a look at the FAQ, it should explain your problem:

http://perl.apache.org/embperl/pod/doc/doc13/pod/Faq.-page-3-.htm#sect_19

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------

  ----- Original Message ----- 
  From: Maurício Amorim 
  To: luiz 
  Cc: embperl 
  Sent: Friday, December 27, 2002 3:16 PM
  Subject: Re: Undefined subroutine &HTML::Embperl::DOC::_6::verifysession


  Hi, Luiz,

  My module don't use package.
  This is some of the type:

  #! /usr/bin/perl

  #=============================================================================================
  # Rotina: verifysession
  # Parametros:
  #     1 : $key
  # Retorno:
  # 0 - sem sessão aberta
  # 1 - com sessão aberta
  #=============================================================================================
  sub verifysession {
      my ($key) = shift;
      if (defined $udat{$key}) {
                  return 1;
      }else{
                  createsession("usuario",undef);
                  createsession("hora",undef);
                  createsession("expira",undef);
                  return 0;
          }
  }

  1;

  Can i do it ?

  I tried set PERL5LIB in httpd.conf, but the error continue (stopping and starting apache).

  Thank you, Mauricio


        De: "Luiz Fernando B. Ribeiro"  

        Para: embperl@perl.apache.org 

        Cópia:  

        Data: Fri, 27 Dec 2002 10:26:05 -0200 

        Assunto: Re: Undefined subroutine &HTML::Embperl::DOC::_6::verifysession 

            

  > Em Thu, 26 Dec 2002 19:48:31 +0000
  > "Maurício Amorim " escreveu:
  > 
  > > Hi list,
  > > 
  > > I am using use module in my epl files.
  > > 
  > > I modify them, but i stop and start the apache, but the error
  > > continue:
  > > 
  > > Internal Server Error
  > > The server encountered an internal error or misconfiguration and was
  > > unable to complete your request. Please contact the server
  > > administrator, ederson@cpqd.com.br and inform them of the time the
  > > error occurred, and anything you might have done that may have caused
  > > the error. [14870]ERR: 24: Error in Perl code: Undefined subroutine
  > > &HTML::Embperl::DOC::_6::verifysession called at
  > > /home/ederson/apachelocal/htdocs/embperl//verdoc-des/cdvsession.epl
  > > line 23. Apache/1.3.26 (Unix) mod_perl/1.27 HTML::Embperl 1.3.4 [Thu
  > > Dec 26 17:39:20 2002] the .epl file is bellow:
  > > 
  > > [-
  > > use lib
  > > '/home/ederson/apachelocal/htdocs/embperl/verdoc-des/pct'; use
  > > GenFunc;
  > > -]
  > > [$ if (verifysession("usuario") == 0) $]
  > > 
  > 
  > It seems to be a problem in your module, be sure it exports the
  > verifysession simbol correctly. Read the documentation about the
  > Exporter:
  > > perldoc Exporter
  > 
  > Any way I sugest you to use [! !] instead of [- -] for loading modules
  > because it is executed only once.
  > 
  > Regards,
  > 
  > Luiz Fernando B. Ribeiro
  > Engenho Soluções para a Internet
  > 
  > ---------------------------------------------------------------------
  > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
  > For additional commands, e-mail: embperl-help@perl.apache.org
  > 
  > 
  > Esta mensagem foi verificada pelo E-mail Protegido Terra.
  > Scan engine: VirusScan / Atualizado em 23/12/2002 / Versão: 1.3.13
  > Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/
  > 
  > 
Mime
View raw message