Re: Merging YAML nodes/streams

2010-05-20 Thread Tom
On Fri, May 14, 2010 at 12:21:21PM -0400, Jay Savage wrote: > > > > CODE > > #!/usr/bin/perl > > use YAML::Syck; > > use Data::Dumper; > > > > my ($yaml) = Load(<<'...'); > > --- > > nameserver: > >  - 172.23.0.5 > >  - 172.23.0.6 > > randomvar: > >  - ela

Re: Merging YAML nodes/streams

2010-05-14 Thread Jay Savage
On Fri, May 14, 2010 at 7:26 AM, Tom wrote: > On Fri, May 07, 2010 at 12:44:01PM -0400, Bob McConnell wrote: >> From: Tom >> >> > I'm having trouble merging YAML streams. >> > >> > Basic premise is that I load multiple YAML files and I want to combine >> > the result. There may be common elements

Re: Merging YAML nodes/streams

2010-05-14 Thread Tom
On Fri, May 07, 2010 at 12:44:01PM -0400, Bob McConnell wrote: > From: Tom > > > I'm having trouble merging YAML streams. > > > > Basic premise is that I load multiple YAML files and I want to combine > > the result. There may be common elements within subsequent YAML files > > and I would want t

RE: Merging YAML nodes/streams

2010-05-07 Thread Bob McConnell
From: Tom > I'm having trouble merging YAML streams. > > Basic premise is that I load multiple YAML files and I want to combine > the result. There may be common elements within subsequent YAML files > and I would want the last loaded to be the taken value if one already > existed. > > I have tr