Subject: | Probably should use modules without import on Trace |
Date: | Sat, 10 Aug 2013 21:45:57 -0700 |
To: | bug-app-fatpacker <bug-App-FatPacker [...] rt.cpan.org> |
From: | Tatsuhiko Miyagawa <miyagawa [...] gmail.com> |
I have an automated script to add extra modules to fatpacker, and if
you pass 'local::lib' to it (because my runtime executable wants it),
the Trace module does eval "use local::lib" which triggers its
import() and then @INC gets messed up in the process and fatpacker
doesn't load modules from the right place.
It might be rare to bundle local::lib, but it's perfectly legit, and i
think Trace should be fixed to not call import (i.e. eval "use $_ ()")
as a safe-guard.
--
Tatsuhiko Miyagawa