in reply to
Subroutine Reference with use strict
You can't give prototypes to sub references like that. Drop the (@), and drop the quotes. Don't worry about the prototypes as sub references are always called at run-time, and protypes aren't even checked at run time. Besides, no prototype equals (@).
%states = (
Default => \&front_page,
Lost => \&lost,
);
By the way, there is no Apache::Register
(at least not in my CPAN mirrors). It's called
Apache::Registry.
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.