in reply to Config::Std multi-part problem
If you want to convert a single-valued entry into a multi-valued entry, you need to convert the scalar to an array . Like so:
Damianuse Config::Std; read_config 'test.cfg' => my %config; print $config{"MYSECTION"}{"element"} . "\n"; $config{"MYSECTION"}{"element"} = [ $config{"MYSECTION"}{"element"}, "test2", ]; write_config %config;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Config::Std multi-part problem
by carcassonne (Pilgrim) on Dec 14, 2005 at 13:31 UTC |
In Section
Seekers of Perl Wisdom