http://qs321.pair.com?node_id=369109

shaolindoman has asked for the wisdom of the Perl Monks concerning the following question:

Hello all. Well, I'm working on login/session tracking and decided to use CGI::Session. I'm working in a windows enviroment and seem to be generating some problems getting the initial session started (hence I'm very inexperienced). Anyways, here is my code along with the errors that are generated when I try to run it.
use strict; use CGI qw(:standard); use CGI::Session; my $cgi = new CGI(); my $session = new CGI::Session(undef, undef, {Directory=>'\tmp'});
I get this error:
Can't locate DB_File.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/si +te/lib .) at C:/Perl/site/lib/CGI/Session/DB_File.pm line 12. BEGIN failed--compilation aborted at C:/Perl/site/lib/CGI/Session/DB_F +ile.pm lin e 12.
I've also trying running it as
my $session = new CGI::Session("driver:FILE", undef, Directory=>File:: +Spec->tmpdir);
and had the same errors. I have File::Spec installed and I have created the directory /tmp. What am I missing here or not understanding? Thanks.