Subject: | warning message when interpolating undefined variables |
perl 5.005.003 Lynx
Config::General 2.03 release
perl -wT
When interpolating an undefined variable with warning enabled, perl is trapping the error verses being caught by Config::General::Interpolate:_var (line 75) directly.
It would be nice if this warning was caught and thrown with a different message than the perl standard so it can be identified differently. This error is really an user error and not a warning. Either the warning should be caught and ignored or some other error message thrown. It would also be nice if there was more control over error and warning message generation. It would be nice if the caller can specify the functions to call .
I am writing a CGI application and I have croak, warn defined for the web. I don't want the errors generated from Config::General to go out
to the web without additional explanations.
Input file
Root___Directory=xxxx
Directory=${Root_Directory}/yyyy