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

Hi everyone. I am new to Perl, and I am not that good at it. If at all you feel that this one is a silly question, then plz pardon me. When i am using:

use CGI::session;

I am getting this error:

Can't locate CGI/session.pm in @INC (@INC contains: /usr/lib/perl5/5.8.3/i586-li nux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i586-linux- thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/pe rl5/vendor_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 / usr/lib/perl5/vendor_perl .)

Plz help me in solving this problem.

Replies are listed 'Best First'.
Re: just a small question
by sk (Curate) on Aug 11, 2005 at 01:38 UTC
    1. It should be use CGI::Session (cap S)

    2. Are you sure you have CGI module on that machine?

Re: just a small question
by Zaxo (Archbishop) on Aug 11, 2005 at 01:38 UTC

    It's spelled with a capital S, CGI::Session. Your system is case-sensitive about file names, which perl constructs from the module name.

    After Compline,
    Zaxo

Re: just a small question
by GrandFather (Saint) on Aug 11, 2005 at 01:46 UTC

    Case is important in module names. The module is CGI::Session.

    <semi-serious>Capitalisation is also useful in nodes and spending an extra keystroke or two to spell things correctly will not only improve your typing, but may garner more interest in answering your questions.</semi-serious>


    Perl is Huffman encoded by design.