The setting of Apache1.3 and Apache2 is different, the simplest settings are as follows
Apache1.3 Settings SetHandler Perl-script perlhandler apache :: Registry Options Execcgi Perlsendheader on Perlsetupenv on location>
Apache2 Settings SetHandler Perl-Script Perlhandler ModperL :: Registry Options Execcgi Perloptions ParseHeaders location>