perl: November 2007 Archives

Had an interesting problem this week with a hostile legacy codebase. There is a "config" module in the codebase that opens a file and creates methods for each of the variables to give you a config object. You can then get your config values by calling the appropriate method. This works fine but in some places in the code base someone has decided to ignore the methods and access the variables directly. Turns out the package stores the variables in a hash called "config" in the object. Accessing the variables directly is therefore possible by doing something along the lines of:

About this Archive

This page is a archive of entries in the perl category from November 2007.

perl: September 2007 is the previous archive.

perl: March 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.21-en