You may be able to use Config's $Config{archname64} value to determine which include path to use. The following (untested) code may get you started:
BEGIN { use Config; if ($Config{archname64}) { use LIB './lib64/perl5/5.8.5/x86_64-linux-thread-multi'; use LIB './lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-mul +ti'; } else { use LIB './lib64/perl5/5.8.5/i386-thread-multi'; use LIB './lib64/perl5/site_perl/5.8.5/i386-thread-multi'; } }
In reply to Re: How to instrust Perl to load the right modules based on architecture?
by GrandFather
in thread How to instrust Perl to load the right modules based on architecture?
by sunshine_august
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |