in reply to Re^3: YAML newbie help
in thread YAML newbie help
Too bad there isn't an option yet to compress sequences.use YAML; my( @foo ) = ({ 'date' => '2005-06-01', 'boss' => 'Clara', 'team' => [ 'Jack', 'Jill', 'Joe' ] }, { 'date' => '2005-06-02', 'boss' => 'Victoria', 'team' => [ 'Harry', 'Hillary', 'Howie' ] } ); local $YAML::Indent = 4; local $YAML::UseFold = 1; print Dump( \@foo ); __END__ --- - boss: Clara date: 2005-06-01 team: - Jack - Jill - Joe - boss: Victoria date: 2005-06-02 team: - Harry - Hillary - Howie
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: YAML newbie help
by Tortue (Scribe) on May 31, 2005 at 11:10 UTC | |
by PodMaster (Abbot) on May 31, 2005 at 11:19 UTC |