Skip Menu |

This queue is for tickets about the Helios CPAN distribution.

Report information
The Basics
Id: 78616
Status: resolved
Priority: 0/
Queue: Helios

Owner: LAJANDY [...]
Requestors: LAJANDY [...]

Bug Information
Severity: Important
Broken in:
  • 2.50_2860
  • 2.50_2910
  • 2.50_3040
Fixed in: 2.50_3220

Subject: Cannot specify a config file with Helios::Config
Download (untitled) / with headers
text/plain 899b
Helios::Config in 2.50_2860 and above does not work if you do not have the HELIOS_INI environment variable set and instead try to specify an configuration file in a program. For example: use Data::Dumper; use Helios::Config; Helios::Config->init(CONF_FILE => '/etc/helios/helios.ini'); my $conf = Helios::Config->parseConfig(); print Dumper($conf),"\n"; should at least dump a hashref of the [global] params in /etc/helios/helios.ini to the terminal, but it dies with: No conf file specified at /usr/lib/perl5/site_perl/5.8.8/Helios/ line 192. though obviously a conf file *was* specified. Interestingly, explicitly setting the conf file *without calling init()* actually works: use Data::Dumper; use Helios::Config; Helios::Config->setConfFile('/etc/helios/helios.ini'); my $conf = Helios::Config->parseConfig(); print Dumper($conf),"\n"; So the problem is with the init() method.
Fixed in the latest 2.50 version.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to