> sub handler : method { 
>         my ($self,$r) = @_;
>         $self = $self->new unless ref $self;
>         $self->{r} = $r;
> }
> 
> When exactly is this ref used? AFAIK $_[0] will never be a reference.

it will when you use the :method attribute :)

in short, it's magic - run the handler and you'll see that $r is _not_ the
first argument to that handler, but the second.

--Geoff

Reply via email to