Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Wednesday August 18, 2004
01:21 PM

Undervalued Modules: Hash::AsObject

[ #20452 ]

There are plenty of modules out there that receive scant attention, perhaps because people don't understand them or, worse, because the authors are unknown (would anyone use Quantum::Superpositions if it wasn't written by Him?)

Today my nomination for an underappreciated module is Hash::AsObject. If all you need to do is present an appropriate interface, it's great.

my $faux_object = Hash::AsObject->new(theater_no => 123);
print $faux_object->theater_no;

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • A good way of making good modules used is to rate them IMHO.

    In addition to raving about them in a blog entry of course :)
  • Hm...this module looks like a prime candidate for using lvalue subs. Consider, I can do:
    $h->{foo} = 123;
    But I can't do this:
    $h->foo = 123;
    Right now it kinda feels like two different forms of syntax. I haven't looked at the source yet to see if this is problematic, or if the author simply hasn't added that feature yet. Perhaps I'll make a feature request. :)