in reply to Retrieve value with key warns 'unitialized value' although present

Just insert the following two lines after the call to load_config:

use Data::Dumper; print Dumper(\%config);

Data::Dumper ist in the core and should be available even without CPAN. Really one of the best tools for debugging (short of using the debugger itself)

Since you probably don't want to wait for the surprise revelation, here is a spoiler:

There is an unwanted space character at the end of each key

  • Comment on Re: Retrieve value with key warns 'unitialized value' although present
  • Download Code