Hi,

I can't seem to get CGI::Session to work. I've perl v5.10.0 installed. Both CGI and CGI::Session are installed as follows:

name ¦ version ¦ area CGI ¦ 3.41 ¦ perl CGI-Session ¦ 4.38 ¦ site
My script contains the two lines below to try and use CGI::Session:
use CGI::Session; my $session = new CGI::Session("driver:File", undef, {Directory=>'F:/w +eb/sessions'}) or bail_out(CGI::Session->errstr);

The error message I got is (printed via bail_out):

new(): failed: couldn\'t load CGI::Session::Serialize::default: Bareword "full_opset" not allowed while "strict subs" in use at C:/perl/lib/Opcode.pm line 45. Compilation failed in require at C:/perl/lib/Safe.pm line 35. BEGIN failed--compilation aborted at C:/perl/lib/Safe.pm line 35. Compilation failed in require at C:/perl/site/lib/CGI/Session/Serialize/default.pm line 6. BEGIN failed--compilation aborted at C:/perl/site/lib/CGI/Session/Serialize/default.pm line 6. Compilation failed in require at (eval 9) line 3.

I'm pretty lost here. Do I have to install other modules that CGI::Session depend on to get it to work?

Please help and thanks in advance.


In reply to CGI Session help by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.