in reply to Can a perl program always be architecture-independent?

Now, how I understand it, is that perl (/usr/bin/perl etc.) will be compiled for a certain architecture, but can that same script/program work on a x64_86/Sparc etc.?

The perl interpreter is compiled and runs on the native architecture.

The Perl script is a completely different beast: it's the text file that you pass around. Text doesn't care what system it's on, unless you tell that text to do something system-dependent.

--
brian d foy <brian@stonehenge.com>
  • Comment on Re: Can a perl program always be architecture-independent?

Replies are listed 'Best First'.
Re^2: Can a perl program always be architecture-independent?
by ghenry (Vicar) on Apr 12, 2005 at 15:58 UTC

    That is how I understand it. It depends on what the text has in it.

    Time to dig deep into rsnapshot

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!