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 (@).
By the way, there is no Apache::Register (at least not in my CPAN mirrors). It's called Apache::Registry.%states = ( Default => \&front_page, Lost => \&lost, );
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Subroutine Reference with use strict
by chiller (Scribe) on Apr 13, 2002 at 20:41 UTC | |
by Anonymous Monk on Apr 14, 2002 at 01:32 UTC |