Try:
as you are generating coderefs for sub front_page and sub lost. See perldoc perlsub for more about coderefs.%states = ( 'Default' => \&front_page, 'Lost' => \&lost, );
In reply to Re: Subroutine Reference with use strict
by rinceWind
in thread Subroutine Reference with use strict
by chiller
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |