Data::AsObject is a Perl module that provides easy object-oriented access to complex and arbitrarily nested perl data structures. It is particulary suitable for working with hash-based representation of XML data, as generated by modules like XML::Complie or XML::TreePP.
SYNOPSIS
use Data::AsObject qw(dao);
my $book = dao {
name => "Programming Perl",
authors => ["Larry Wall", "Tom Christiansen", "Jon Orwant"],
};
print $book->name # prints "Programming Perl"
print $book->authors(0) # prints "Larry Wall"
my $array_ref = $book->authors # $array_ref is ["Larry Wall", "Tom Christiansen", "Jon Orwant"]
my @array = $book->authors # @array is ("Larry Wall", "Tom Christiansen", "Jon Orwant")
$book->{publisher} = "O'Reilly";
print $book->publisher # prints "O'Reilly"
Product's homepage
Requirements:
· Perl