Re: Config::General save_file() not converting named block to nested block when there is only one block]

2020-02-26 Thread Frans Spiesschaert
--- Begin Message --- Andy Bach schreef op wo 26-02-2020 om 15:30 [-0600]: > Huh. Seems the docs would say the opposite Yes indeed, the docs do say so. But you should try my exampl.pl to find out that it fails to do so when there is only one block. And I have no clue on how to get the desired r

Re: Config::General save_file() not converting named block to nested block when there is only one block

2020-02-26 Thread Andy Bach
Huh. Seems the docs would say the opposite save_file() Writes the config hash back to the hard disk. This method takes one or two parameters. The first parameter must be the filename where the config should be written to. The second parameter is optional, it must

Config::General save_file() not converting named block to nested block when there is only one block

2020-02-26 Thread Frans Spiesschaert
Hi, This is my exmple.pl #!/usr/bin/perl -w use strict; use Config::General; my $datafilename = 'example.conf'; my %confighash; my $config = \%confighash; $config->{client}->{Bob}->{city} = 'Brussels'; $config->{client}->{Jane}->{city} = 'Antwerp'; my $datafile = Config::General->new; $datafil