Thread Problem PAR-Modul und CGI::Session
(16 answers)
Opened by r44bux at 2007-03-22 00:49
Hallo Leute,
ich habe das PAR-Modul installiert unter XP und xampp. Das Erstellen von Exe-Dateien und Archiven funktioniert. Problem: Das Einbinden von CGI::Session führt zu folgender Fehlermeldung: "Can't locate CGI/Session/File.pm in @INC (@INC contains: CODE(0x1884cac) C:/xampp/perl/lib C:/xampp/perl/site/lib . CODE(0x188184c)) at (eval 15) line 3." das Perl-Script sieht wie folgt aus: (stark gekürzt) ------------------------------------------------------- #!c:\xampp\perl\bin\perl.exe -w ########################################### # session.pl ########################################### use PAR 'session.par'; use CGI; use CGI::Carp qw(fatalsToBrowser); use warnings; use strict; $main::Cgi = new CGI; # create new CGI object print $main::Cgi->header; # create the HTTP header print "\n<br> use CGI::Session"; use CGI::Session qw/-ip-match/; use File::Spec; print "\n<br> use CGI::Session ok"; print "\n<br> create new Session Object"; my $Sid = $main::Cgi->cookie('CGISESSID') || $main::Cgi->param('CGISESSID') || undef; # try to get session-id from cookie or from cgi or return undef $main::Session = new CGI::Session(undef, $Sid, {Directory=>File::Spec->tmpdir()}); # creates new session, if no one exists print "\n<br> new Session Object created"; print "\n<br> Session->id() = " . $main::Session->id(); print "\n<br> loging out"; $main::Session->delete(); print "\n<br> loged out"; exit; ------------------------------------------------------- Bin für jede Hilfe dankbar tschüß Reinhold |