in reply to Need help fixing AppConfig error ("global_password: no such variable")
The quick dirty ugly way would be to define your own error handler, and ignore it.
I did that here, adding in
And defining an error tag above your GLOBAL line, like
When I run, I get no error about global_password not existing.
Of course, YMMV. Personally, I wouldn't ignore any errors if I could help it.
Or, you could use the CREATE tag to make variables automatically that don't exist and set them to their default values.
I did that here, adding in
sub my_error() { }
And defining an error tag above your GLOBAL line, like
ERROR => \&my_error,
When I run, I get no error about global_password not existing.
Of course, YMMV. Personally, I wouldn't ignore any errors if I could help it.
Or, you could use the CREATE tag to make variables automatically that don't exist and set them to their default values.
|
---|
In Section
Seekers of Perl Wisdom