Menu

Cacti + IPPlan / News: Recent posts

Error Checking in Cactiipplan::Config

Is started the project by trying to crank out the config module. I figured it would be the easiest undertaking and useful to already have when working on more important code.

I decided to use Config::Scoped as the underlying config parser. It seemed to be the best fit for the structure of the needed configuration information. However, Config::Scoped uses Config::Scoped::Error for throwing/catching exceptions. This is based on Error.pm which I've never used before. I don't know if I'm hung up by my lack of understanding Error.pm or if there is something wrong in Config::Scoped::Error. I can not seem to get it to fail (invoke a catch) when an invalid filename is given.

Posted by Lee Nelson 2010-08-19
MongoDB Logo MongoDB