in reply to What's the right way to include a config file as a .pm bareword?

Even you can use do() to include .pl file, as below.

use strict; use warnings; use Data::Dumper; our $config = do '/pathto/config.pl'; print $config->{'foo'};

All is well. I learn by answering your questions...
  • Comment on Re: What's the right way to include a config file as a .pm bareword?
  • Download Code