in reply to Subroutine Reference with use strict
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, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Subroutine Reference with use strict
by chiller (Scribe) on Apr 13, 2002 at 20:44 UTC |