Acme::DarmstadtPM::TieHash - a module that shows that Perl can do all the Ruby things ;-)
version 0.4
#!/usr/bin/perl use strict; use warnings; use Test::More tests => 2; use constant ADT => 'Acme::DarmstadtPM::TieHash'; use_ok(ADT); tie my %hash,ADT,sub{$_[0] + $_[-1]}; is($hash{[1,5]},6,'Check [1,5]'); untie %hash;
Ronnie sent a mail to the mailinglist with some good Ruby stuff. I said, that all these things can be done in Perl, too. So this module is a proof how smart Perl is...
Renee Baecker <reneeb@cpan.org>
This software is Copyright (c) 2014 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Acme::DarmstadtPM::TieHash, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::DarmstadtPM::TieHash
CPAN shell
perl -MCPAN -e shell install Acme::DarmstadtPM::TieHash
For more information on module installation, please visit the detailed CPAN module installation guide.