I am having problems trying to migrate some Perl code (that I didn't write) from
mod_perl 1 (and libapreq 1) to mod_perl 2 (and libapreq2).

I don't understand why I having problems with this simple code example.

package Example;

use strict;

use mod_perl;
use Apache2;
use Apache::RequestRec;
use Apache::Request;      # libapreq2

sub handler : method {
        my ($class, $r) = @_;
        my $apr = Apache::Request->new($r);

        $apr->notes( 'mm_secure' => 0 );
}

1;


The error is:
[Tue Mar 23 11:41:36 2004] [error] [client 127.0.0.1] Usage:
Apache::RequestRec::notes(obj, val=NULL) at /var/www/perl/Example.pm line 14.


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to