Perhaps JSON::Syck (which uses libsyck to spit out more JSON-friendly YAML) may be more what he's looking for.
$ perl -MJSON::Syck=Dump -le 'print JSON::Syck::Dump( { a => { b => "c +", d => [qw/1 2 3/] } } )' {"a":{"b":"c","d":["1","2","3"]}}
In reply to Re^3: YAML::Syck serializing Dump into single line
by Fletch
in thread YAML::Syck serializing Dump into single line
by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |