Data::AsObjectEasy OO access to complex Perl data structures | |
Download |
Data::AsObject Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Petar Shangov
- Publisher web site:
- http://search.cpan.org/~pshangov/
Data::AsObject Tags
Data::AsObject Description
Easy OO access to complex Perl data structures 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 => , }; print $book->name # prints "Programming Perl" print $book->authors(0) # prints "Larry Wall" my $array_ref = $book->authors # $array_ref is my @array = $book->authors # @array is ("Larry Wall", "Tom Christiansen", "Jon Orwant") $book->{publisher} = "O'Reilly"; print $book->publisher # prints "O'Reilly" Requirements: · Perl
Data::AsObject Related Software