Problem with xampp 1.7.4 in Windows 7

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/ 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:

LoadFile "/xampp/perl/bin/perl510.dll"
LoadModule perl_module modules/
PerlPostConfigRequire "/xampp/apache/conf/extra/"

<IfModule mime_module>
    AddType text/html .pl

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

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

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

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 ();

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