in reply to Running perl on multiple platforms

Your lib directory can be shared across architectures -- perl takes care of architecture-specific libraries quite nicely. Your only issue, then, is getting to the correct binary. I recommend something on the order of:
#!/bin/ksh # If ksh isn't available for all platforms, use /bin/sh, # but test the the argument quoting below -- not # all /bin/sh are created equal... # have this be file ~/bin/perl ARCH=`uname` exec ~/bin/perl-$ARCH "$@"
That is, place architecture-dependend binaries for perl in your ~/bin directory, and have ~/bin/perl redirect to the correct perl.
As I said above, they can all share ~/perl/lib (or whatever) as their install area for libraries.
I hope this helps...

--JAS

Replies are listed 'Best First'.
Re: Re: Running perl on multiple platforms
by the pusher robot (Monk) on Nov 14, 2002 at 23:05 UTC
    Thanks. So, when I compile it for the other platforms, I should just install it to a temporary directory and copy the binaries over?
Re: Re: Running perl on multiple platforms
by the pusher robot (Monk) on Nov 15, 2002 at 02:35 UTC
    This works from the shell, but not in a shebang line. I posted another question about it.