On Sat, 8 Mar 2003, Stas Bekman wrote:

> test.pl:
> --------
> my $r = shift;
> $r->content_type('text/plain');
> $r->print($r->args);
>
> why? because what registry does is wrapping the code into a function handler,
> passing $r as an argument. However it's also in the scope of the code that
> calls this function, so it looks like it work. However if you change your code to:

The  $r=shift  did the trick. I wasn't aware that the code was wrapped
into a handler until I studied the RegistryCooker source yesterday. Sorry.

Thanks,
-Kurt.
__________
kurt george gjerde <[EMAIL PROTECTED]>
intermedia uib, university of bergen

Working for bandwidth.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to