in reply to OS400 PASE - architecture?

$Config{archname} is the architecture that copy of perl was built on, not necessarily what you're running on (similarly with $^O).

You might be more interested in either using backticks to call the system's uname command, and/or calling uname from the core POSIX module.

Replies are listed 'Best First'.
Re^2: OS400 Pace - architecture?
by regexes (Hermit) on Jun 06, 2007 at 13:42 UTC
    $Config{archname} is the architecture that copy of perl was built on, not necessarily what you're running on (similarly with $^O).

    Ok... but if the perl binary being used has been built on those architectures can I not safely say that $^O is correct? At least of all the unix machines we have in our landscape the perl was built on and delivered on those architectures.

    Update: I just answered my own question. No, I cannot.. hence aix on both OS400 and AIX architectures. That just shows that the perl binary delivered with the PACE environment was built on an AIX architecture..


    -------------------------
    Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan "press on" has solved and always will solve the problems of the human race.
    -- Calvin Coolidge, 30th President of the USA.