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