in reply to Re: YAML + template/reuse
in thread YAML + template/reuse

Ah, Hash::Merge hits the nail on the head. Thanks!

Replies are listed 'Best First'.
Re^3: YAML + template/reuse
by Anonymous Monk on Dec 01, 2007 at 02:11 UTC

    BTW, when merging can I delete some keys? Something like:

    # parent.yaml foo: bar: 2 baz: 3 # child.yaml foo: bar: 4 # override foo/bar *baz: whatever # undefine baz, prompt users to choose
    OR baz: delete!

    I don't see that option in Hash::Merge. Other module, perhaps?