| CPAN Ratings Data-JavaScript-Anon reviews | |
| Home | Search | About | Bitcard Account | Login |
RSS | Module Info | Add a review of Data-JavaScript-Anon
This module creates fragments of JavaScript for assigning data to an array or hash, based on a Perl data structure. The resulting JavaScript is nicer than that produced by Data::JavaScript, and, despite the name of this module, it is capable of naming the JavaScript variables if necessary.
However having to use class methods, rather than exported functions, is very tedious, _viz_:
Data::JavaScript::Anon->script_wrap(Data::JavaScript::Anon->anon_dump(\%menu));
Object-orientation makes no sense at all here: there isn't an object in sight.
The ->script_wrap method possibly doesn't belong in this module (and I have a minor quibble with its including the deprecated lang attribute) but it isn't really causing any harm.
Smylers - 2005-02-10T08:12:36
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|