Hi again, Sorry for my previous post. I found the problem.
I wrote by mistake: use CGI::session; (with a small "s" and this sometimes work under Windows, but sometimes for some tasks it doesn't. And that's why perl didn't tell me that it couldn't find that module. Teddy ----- Original Message ----- From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: <beginners@perl.org> Sent: luni, 17 ianuarie 2005 21:12 PM Subject: Problem using CGI::Session Hi all, I have tried using the module CGI::Session with MySQL. If I try $session->id; It prints fine the hash of the current session, but if I try to print $session->name; or $session->header; It gave me the following error: Can't locate auto/CGI/Session/MySQL/name.al in @INC (@INC contains: f:/web/presa/modules F:/usr/lib F:/usr/site/lib .) at F:\web\presa\scripts\test.pl line 16 A short test script which gives those errors is: use DBI; use CGI; use CGI::session; my $q = CGI->new; my $dbh = DBI->connect("DBI:mysql:database=presa;host=localhost", "ODBC", undef, {PrintError => 1, RaiseError => 1, AutoCommit => 1}); my $session = CGI::Session->new("driver:MySQL;id:MD5", undef, {Handle=>$dbh}); #The following line inserts fine this variable in a MySQL table #$session->param('lala', 'lulu'); #This prints fine the session ID #print $session->id; #But this line gives an error print $session->name; #This line also prints the error below: $session->header; __END__ Can't locate auto/CGI/Session/MySQL/header.al in @INC (@INC contains: F:/usr/lib F:/usr/site/lib .) at F:\web\presa\scripts\test.pl line 18 Help! I cannot see what could be wrong! Thank you. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>