Subject: | Tangram::Storage patch, removing bogus sub ref in BEGIN |
Date: | Fri, 26 Jan 2007 00:45:30 +0200 |
To: | bug-Tangram [...] rt.cpan.org |
From: | Assen Tchorbadjiev <pt [...] tchorbadjiev.com> |
Hello,
attached is a minor (cg-diff) patch against the latest HEAD rev.
There seems to be a stale alias in the BEGIN block inside
Tangram::Storage, to the Tangram::Core::pretty sub, which got moved
inside the Tangram::Util package.
There is a problem only when the TRACE is being enabled.
Regards,
Assen
diff --git a/lib/Tangram/Storage.pm b/lib/Tangram/Storage.pm
index 842451b..b44711a 100644
--- a/lib/Tangram/Storage.pm
+++ b/lib/Tangram/Storage.pm
@@ -12,10 +12,6 @@ use Scalar::Util qw(weaken refaddr);
use vars qw( %storage_class );
-BEGIN {
- *pretty = *Tangram::Core::pretty;
-}
-
sub new
{
my $pkg = shift;