mirror of
https://git.freebsd.org/ports.git
synced 2025-06-16 18:20:33 -04:00
search.cpan.org is shutting down. It will redirect to metacpan.org after June 25, 2018. With hat: perl
11 lines
477 B
Text
11 lines
477 B
Text
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.
|
|
|
|
WWW: https://metacpan.org/release/Hash-Objectify
|