Using BEGIN blocks does not appear appropriate.

I won't apply this patch.

On Mon, 2011-03-14 at 00:37 +0200, Yavor Nikolov wrote:
> 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
>                 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-users mailing list
> [email protected]
> http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to