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?
In reply to yaml dynamically load in perl by louie_45
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |