louie_45 has asked for the wisdom of the Perl Monks concerning the following question:
We plan to use Yaml as the config parser in our tool.
But we need figure out the solution for below concern.
1> data structure deeply merge and include
==> I think it’s doable as we could use some modules link Yaml::AppConfig, Hash::Merge etc
2> External command call with variable substitution
==> No sure how to do this part as if the setting is:
cmd: date +%W
And other var depends on it.
3> Dynamically load anonymous sub with mutable arguments
==> For instance:
exe_cmd: anonymous_sub
Then when the program running, we want to load the setting as: &$anonymous_sub(args) for call back
Is it doable?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:yaml dynamically load in perl
by shmem (Chancellor) on Nov 01, 2015 at 16:22 UTC | |
by louie_45 (Acolyte) on Nov 02, 2015 at 07:04 UTC | |
by AnomalousMonk (Archbishop) on Nov 02, 2015 at 13:39 UTC | |
by louie_45 (Acolyte) on Nov 02, 2015 at 14:26 UTC | |
|
Re: yaml dynamically load in perl
by Your Mother (Archbishop) on Nov 01, 2015 at 19:44 UTC | |
by louie_45 (Acolyte) on Nov 02, 2015 at 10:11 UTC | |
by Your Mother (Archbishop) on Nov 02, 2015 at 13:14 UTC |