Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A hash that remembers where its keys were set
Perl
tree: 4842284428

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Tie/Hash
t
.gitignore
Changes
README.pod
dist.ini
weaver.ini

README.pod

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.

Something went wrong with that request. Please try again.