in reply to Re: Converting Hashes to Objects
in thread Converting Hashes to Objects
Thanks :-)
I often miss Java's standard object methods toString, equals, compareTo, perhaps serialise.
The first three would usually be done with overloading, I guess, and serialization depends on the format (like Storable or one of the many text-based formats). I wrote a bit about the complexity of equals and hashCode in this node.
Another thought is to provide a *safe and proper* way to convert from a string representation of a perl data structure(pds) to pds
I tried to do something like that with Config::Perl (see Undumping Perl).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Converting Hashes to Objects
by bliako (Monsignor) on May 20, 2020 at 10:04 UTC | |
by haukex (Archbishop) on May 20, 2020 at 10:23 UTC |
In Section
Meditations