in reply to Re: Human-readable serialization formats other than YAML?
in thread Human-readable serialization formats other than YAML?
Unless there is an option I missed somewhere, XML::Simple can't roundtrip perl objects either...
use Test::More tests => 1; use Test::Differences; use XML::Simple; my $in = bless( { foo => 'bar' }, 'Something' ); my $out = XMLin( XMLout( $in ) ); eq_or_diff( $in, $out ); __END__ 1..1 not ok 1 # Failed test at foo.pl line 8. # +----+------------------+----------------+ # | Elt|Got |Expected | # +----+------------------+----------------+ # * 0|bless( { |{ * # | 1| foo => 'bar' | foo => 'bar' | # * 2|}, 'Something' ) |} * # +----+------------------+----------------+ # Looks like you failed 1 test of 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Human-readable serialization formats other than YAML?
by perrin (Chancellor) on Apr 23, 2008 at 17:44 UTC | |
|
Re^3: Human-readable serialization formats other than YAML?
by tachyon-II (Chaplain) on Apr 24, 2008 at 00:46 UTC | |
by parv (Parson) on Apr 24, 2008 at 01:02 UTC | |
by tachyon-II (Chaplain) on Apr 24, 2008 at 01:18 UTC |