SilasTheMonk has asked for the wisdom of the Perl Monks concerning the following question:
The error is Error: Global symbol "%__DFV_DEFAULTS" requires explicit package name at .....use Readonly; Readonly::Hash our %__DFV_DEFAULTS => { missing_optional_valid => 1, filters => 'trim', msgs => { any_errors => 'err__', prefix => 'err_', format => '<span class="dfv-errors">%s</span>', } }; sub cgiapp_init { my $self = shift; # Set some defaults for DFV unless they already exist. $self->param('dfv_defaults') || $self->param('dfv_defaults', \ %_ +_DFV_DEFAULTS); return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hitting head against wall over Readonly compilation errors
by ikegami (Patriarch) on Sep 12, 2009 at 12:41 UTC | |
by SilasTheMonk (Chaplain) on Sep 12, 2009 at 12:53 UTC | |
|
Re: Hitting head against wall over Readonly compilation errors
by Perlbotics (Archbishop) on Sep 12, 2009 at 12:43 UTC | |
by SilasTheMonk (Chaplain) on Sep 12, 2009 at 12:57 UTC | |
by Anonymous Monk on Sep 12, 2009 at 13:37 UTC | |
by SilasTheMonk (Chaplain) on Sep 12, 2009 at 14:14 UTC | |
by ikegami (Patriarch) on Sep 13, 2009 at 01:29 UTC | |
by SilasTheMonk (Chaplain) on Sep 13, 2009 at 09:40 UTC |