note
hacker
Responding to my own question: I think I may have figured out an easier way:
<code>
use strict;
use warnings;
use Data::Dump qw(dump ddx);;
use Config::General;
my $conf = new Config::General("Makefile");
my %config = $conf->getall;
print dump(\%config);
</code>
<p>This puts each item as key/value pairs in the <code>%config</code> hash, which I can them print out and manipulate as <code>$config{'SOURCES'}</code> for example.
<p>I guess the only thing I end up losing here, is the basic original formatting, but I can probably iterate through the hash and reconstruct that back somehow.
<p>Anyone familiar with the innards of [mod://Config::General] that can lend a hand so I can use it correctly?
715130
715135