hello,
I have a proposal for a new module, called
Tie::AliasHash. it provides a tied hash with 'alias'
keys (or even a 'jolly' key). the stripped down
synopsis is:
use Tie::AliasHash;
tie %hash, 'Tie::AliasHash';
$hash{ [ 'foo', 'bar' ] } = "xxx";
print $hash{'foo'}; # xxx
print $hash{'bar'}; # xxx
$hash{'bar'} = "yyy";
print $hash{'foo'}; # yyy
print $hash{'bar'}; # yyy
further information in the attached POD file.
comments on every aspect (namespace, documentation,
implementation) are very welcome. should no comment
pop up, I will assume the proposal is welcome and
proceed to CPAN upload. I already proposed the module
on comp.lang.perl.modules and at least one person
said it would be useful to him :-)
cheers,
Aldo
__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;
AliasHash.pod