Skip Menu |

This queue is for tickets about the Config-Any CPAN distribution.

Report information
The Basics
Id: 41821
Status: rejected
Priority: 0/
Queue: Config-Any

People
Owner: Nobody in particular
Requestors: KES [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Can not figure out how to load 'perl' file from 'config.rep' also in SYNOPSIS $class is undefined. There is error that I can not call config on undefined value. my $cfg= Config::Any->load_files({ files => [ 'fire.rep' ], force_plugins => [ 'perl' ] }); for (@$cfg) { my ($filename, $config) = %$_; my $class->config($config); #ERROR HERE: $class is undefined print "loaded config from file: $filename"; }
This is a question. Not a bug. Here's how I was able to get "x.rep" to load: use strict; use warnings; use Config::Any; use Config::Any::Perl; use Data::Dumper; my $cfg = Config::Any->load_files( { files => [ 'x.rep' ], force_plugins => [ 'Config::Any::Perl' ] } ); print Dumper $cfg; If you want to pursue this matter, please send me an email directly (bricas@cpan.org). PS: This did help me find a little bug, so thanks for that :)