BSD Ports

devel/p5-Hash-Objectify 0.008 DragonFly

Create objects from hashes on the fly

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel, perl5
Package size
10.5 KiB, 21.6 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlydevel/p5-Hash-Objectify0.008
FreeBSDdevel/p5-Hash-Objectify0.008
HardenedBSDdevel/p5-Hash-Objectify0.008
GhostBSDdevel/p5-Hash-Objectify0.008

Install

Binary package:

pkg install p5-Hash-Objectify

From DPorts:

cd /usr/dports/devel/p5-Hash-Objectify && make install clean

Dependencies

Run dependencies 2

No port depends on this one.