FreeBSD.software
Home/devel/p5-Hash-Objectify

p5-Hash-Objectify

0.008devel

Create objects from hashes on the fly

Hash::Objectify turns a hash reference into a simple object with accessors for each of the keys. One application of this module could be to create lightweight response objects without the extra work of setting up an entire response class with the framework of your choice. Using Hash::Objectify is slower than accessing the keys of the hash directly, but does provide "typo protection" since a misspelled method is an error.

$pkg install p5-Hash-Objectify
metacpan.org/release/Hash-Objectify
Origin
devel/p5-Hash-Objectify
Size
21.4KiB
License
APACHE20
Maintainer
sunpoet@FreeBSD.org
Dependencies
2 packages
Required by
0 packages

Dependencies (2)