Problem with xampp 1.7.4 in Windows 7

Hi,
I have several homepages which I tested in XAMP/Apache in Win XP.
Now I installed XAMP under Win 7.
I defines the Vhosts and the cgi-directories for my Perl-Programs which are called within the html-Code.
But now I get plenty of messages:
Variable “$…” will not stay shared at D:/neu/test/cgi-bin/test.pl line 8
I read something about mod-perl but I don’t find out how to configer my Perl correctly.
In the httpd-perl.conf:

[I]
LoadFile "/xampp/perl/bin/perl510.dll"
LoadModule perl_module modules/mod_perl.so
PerlPostConfigRequire "/xampp/apache/conf/extra/startup.pl"

<IfModule mime_module>
    AddType text/html .pl
</IfModule>

<FilesMatch "\\.pl$">
    SetHandler perl-script
    PerlResponseHandler ModPerl::Registry
    PerlOptions +ParseHeaders
</FilesMatch>

<Directory "/xampp/cgi-bin">
    <FilesMatch "\\.pl$">
        SetHandler cgi-script
    </FilesMatch>
</Directory>

# ASP settings
Include "conf/extra/httpd-perl-asp.conf"
[/I]
I tried ModPerl::Registry and ModPerl::PerlRun.

In startup.pl:
[I]
use ModPerl::Util ();
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::RequestUtil ();
use Apache2::ServerRec ();
use Apache2::ServerUtil ();
use Apache2::Connection ();
use Apache2::Log ();
use Apache2::Const -compile => ':common';
use APR::Const -compile => ':common';
use APR::Table ();
use Apache2::compat ();
use ModPerl::Registry ();
use CGI ();
use Apache::ASP ();
1;
[/I]

I tried use ModPerl::Registry () and use ModPerl::PerlRun ();
But it didn’t work either.
Can anybody help me?
Thank you