Hi, Here is an alternative patch which instead of eval "use lib ..." adds the relevant library paths in BEGIN block. This allows loading from these paths "special" modules which can only be loaded on compile-time (e.g. - List::MoreUtils seems to be such case /maybe because depends on C libraries/).
Regards, Yavor 2011/3/13 Yavor Nikolov <[email protected]> > Seems another thing got broken though... following doesn't work as desired: > eval "use List::MoreUtils qw(firstidx)"; > > I don't know how to fix that still keeping MoreUtils evalled at runtime > (just eval List::MoreUtils and then calling List::MoreUtils::firstidx > doesn't seem to work). > > Maybe would be easiest to switch back relying MoreUtils to be globally > installed (or at least resolved at run-time). > > Yavor > > > 2011/3/13 Thorsten Schöning <[email protected]> > >> Guten Tag Yavor Nikolov, >> am Samstag, 12. März 2011 um 14:12 schrieben Sie: >> >> > Anyway - I'm attaching my patch for this issue. Seems to work fine for >> me. >> >> Using eval is a very nice idea, wouldn't have expected that to work. :-) >> >> Mit freundlichen Grüßen, >> >> Thorsten Schöning >> >> -- >> Thorsten Schöning >> AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig >> >> Telefon: Potsdam: <0331-743881-0> <0331-743881-0>0331-743881-0 >> E-Mail: [email protected] >> Web: http://www.am-soft.de >> >> AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam >> Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow >> >> _______________________________________________ >> scmbug-users mailing list >> [email protected] >> http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users >> > >
scmbug_bugzilla_use_lib_in_BEGIN.patch
Description: Binary data
_______________________________________________ scmbug-users mailing list [email protected] http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
