perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tosh Cooey <t...@1200group.com>
Subject Re: A ghost in the machine?
Date Fri, 15 Jan 2010 13:20:53 GMT
Case closed.

Danke an alle!

Tosh


Torsten Förtsch wrote:
> On Friday 15 January 2010 00:41:25 Tosh Cooey wrote:
>> Well Gang, we solved the smaller @_ mystery but not the larger 
>> "different behaviour under mod_perl" mystery.
>>
> No, we have.
> 
> A registry script is wrapped into a subroutine. So your index.pl will look 
> like:
> 
>   sub ... {
>     package ...;
>     use MyConfig;
>     use ClientConf;
>     use MyUser;
>     my $vars = { config => &cfg };
>     ...
>   }
> 
> This function is called with $r as the one and only parameter. So @_=($r) at 
> the time of calling &cfg. That means you is fact call &cfg($r).
> 
> Torsten
> 

-- 
McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/

Mime
View raw message