I'm working latest CGI module (version 4.3+) and when I try to create CGI:: Session objects in a pl file, it's throwing error saying Session.pm file not present. As it said Session.pm file is not existing in @INC. How come file missed and is there any fix for this.
Asked
Active
Viewed 303 times
-1
-
1Please provide the exact `use` statement and the exact error message. (Feel free to to replace private words in the paths with alternate words on a one-to-one basis.) – ikegami Feb 28 '18 at 20:50
1 Answers
1
Looks like CGI::Session isn't installed on your system. It's a separate distribution to CGI, so it needs to be installed separately.

Dave Cross
- 68,119
- 3
- 51
- 97
-
Downloaded the session module from the link you provided and pasted session folder contents to CGI folder. its working – LNP Mar 03 '18 at 06:13
-
@NirmalPraveen: That's a terrible approach. Please install CPAN modules using the standard methods. – Dave Cross Mar 03 '18 at 06:31
-
in Perl package manager, I'm unable find session module. Is there any alternative way to do it. – LNP Mar 03 '18 at 06:33
-
1I've no idea what a "Perl package manager" is. You should install CPAN modules using [cpanm](https://metacpan.org/pod/distribution/App-cpanminus/bin/cpanm). – Dave Cross Mar 03 '18 at 07:04