Rob Hoelz > Tie-Hash-Blame > Tie::Hash::Blame

Download:
Tie-Hash-Blame-0.01.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Tie::Hash::Blame - A hash that remembers where its keys were set

VERSION ^

version 0.01

SYNOPSIS ^

  use Tie::Hash::Blame;

  my %hash;
  tie %hash, 'Tie::Hash::Blame';

DESCRIPTION ^

Have you ever tried to track changes to a hash throughout a large program? It's hard, isn't it? This module makes things a little easier. Its intended use is for debugging, because ties are magic, and magic is evil.

METHODS ^

tied(%hash)->blame

Returns a hash reference containing the location of the last assignment to each hash key. The keys in the returned hash reference are the same as in the underlying hash; the values, however, are all hash references with two keys: 'filename' and 'line_no'.

AUTHOR ^

Rob Hoelz <rob@hoelz.ro>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Rob Hoelz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

BUGS ^

Please report any bugs or feature requests on the bugtracker website https://github.com/hoelzro/tie-hash-blame/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

syntax highlighting: