Subject: | Class::Loader and Data::Dumper |
Date: | Sun, 19 Apr 2015 16:15:47 +0300 |
To: | bug-Class-Loader [...] rt.cpan.org |
From: | Thanos Chatziathanassiou <tchatzi [...] arx.net> |
Hey, I think I've discovered a case where Class::Loader fails and
produces a rather cryptic error message:
If someone has tinkered with Data::Dumper options, in particular
$Data::Dumper::Pad, Class::Loader dies a horrible death without any
indication of what went wrong.
eg ``Unable to load module Crypt::Random::Provider::devurandom - at
/usr/local/share/perl5/Crypt/Random.pm line 51.''
Granted, code that tinkers with $Data::Dumper::Pad, should probably
local()ize this behavior, but shouldn't perhaps Class::Loader do the same ?
It's not that big a deal, but if someone stumbles upon it, one's in for
quite some head scratching.
Best Regards,
Thanos Chatziathanassiou
Message body not shown because it is not plain text.