"Undefined subroutine" error

Problems with the Windows version of XAMPP, questions, comments, and anything related.

"Undefined subroutine" error

Postby maya75 » 30. June 2007 03:10

Hi,

I'm trying to install my website (which is on a Debian Server and works fine) on my computer (Windows XP sp1) with XAMPP (I've just installed xampp-win32-1.6.2-installer.exe and xampp-win32-perl-addon-5.8.8-2.2.4-installer.exe).

I have this error :

Code: Select all
Undefined subroutine &ModPerl::ROOT::ModPerl::Registry:: C_3a_temp_xampp_htdocs_cgi_2dbin_loc_gestion_pro_2epl:: get_session called at C:/temp/xampp/htdocs/cgi-bin/loc_gestion_pro.pl line 21. ,


The file which is calling the function :
Code: Select all
#!/usr/bin/perl -w

use DBI ;
use CGI ;
use CGI::FastTemplate;

require "C:\\temp\\xampp\\htdocs\\cgi-bin\\commun.pl";

$dbh = DBI->connect($CONNEXION, $LOGIN, $PASSWD) ;
 
$id_session = &get_session($COOKIE, $dbh) ;  <--- line 21 : the error !

...



And the file which contains the function :
Code: Select all
use Number::Format;
use CGI;

sub get_session
#--------------
{
   my(
         $id_session,
         $cookie,
         @ligne,
         $cgi,
         $dbh
      );

 ...

}


Can you help me ?
maya75
 
Posts: 1
Joined: 30. June 2007 02:58

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 205 guests