Re: Problem moving from Data::Dumper to YAML
- From: "Brad Baxter" <baxter.brad@xxxxxxxxx>
- Date: 31 May 2006 07:08:29 -0700
Rob Chanter wrote:
Hi List,[snip]
I'm having a little trouble with YAML. The current version of a script
uses Data::Dumper to keep running totals over multiple runs of the script
in a nested hash, as well as a couple of arrays to give other programs
hints about how to order the data (for, say, graphing). I'd very much like
to switch over to YAML for the serialising.
Now, according to the documentation, YAML::Dump() "works very much like[snip]
Data::Dumper::Dumper()", and should pretty much be a drop-in replacement.
I guess the answer is that it "works very much like
Data::Dumper::Dumper()" as the YAML docs say,
but is not in fact a "drop-in replacement", which the
docs do not claim. It would appear that not all of the
parameters that Dumper() supports are supported
by Dump().
--
Brad
.
- References:
- Problem moving from Data::Dumper to YAML
- From: Rob Chanter
- Problem moving from Data::Dumper to YAML
- Prev by Date: Re: hash and array question
- Next by Date: Simple loop question
- Previous by thread: Problem moving from Data::Dumper to YAML
- Next by thread: Russian character support
- Index(es):
Relevant Pages
|
|