Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] [N00B] mod_perl2 Apache2::::Connection get_remote_host



Nguyen Vu Hung writes:

 > my $c = $r->connection;

 > [Thu Aug 09 17:06:57 2007] [error] Global symbol "$r" requires explicit
 > package name at /path01/www/Biz001.pm

You need $Apache2::Connection::r or $Apache2::RequestRec::r instead of
the bare $r, I bet.

 > I don't know why because arcording to Apache2::Connection API page, my
 > code *should* work.

They probably think so, too, but don't bet on them having actually
tested it.  Or perhaps the context is different in your program from
their example.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links