Hi, My CGI application runs well on Plain CGI environment. But now I am trying it on mod_perl. It throws the following error:

Attempting to process state: advanced_search Attempting to process sta +te: run_search [Wed Jan 28 10:09:27 2009] -e: Use of uninitialized va +lue in pattern match (m//) at /usr/lib/perl5/site_perl/5.8.8/Data/Ser +ializer.pm line 597. [Wed Jan 28 10:09:27 2009] -e: Use of uninitialized value in subroutin +e entry at /usr/lib/perl5/site_perl/5.8.8/Data/Serializer.pm line 692 +. Magic number checking on storable string failed at ../../lib/Storable. +pm (autosplit into ../../lib/auto/Storable/thaw.al) line 366, at /usr +/lib/perl5/site_perl/5.8.8/Data/Serializer/Storable.pm line 32


If I configure apache(httpd.conf) for the following setting, my application works and retrieve the search results
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" <Directory "/var/www/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory>

But if I change my configuration to:
PerlModule ModPerl::RegistryPrefork Alias /cgi-bin/ /var/www/cgi-bin/ <Location /cgi-bin> SetHandler perl-script PerlResponseHandler ModPerl::RegistryPrefork PerlSendHeader On PerlOptions +ParseHeaders Options +ExecCGI </Location>

Then only i received the error I mentioned above.
please suggest?

In reply to Magic number checking on storable string failed by shanu_040

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.