in reply to Architecture of processor

Assuming the Unix system is POSIX compliant
print `uname -m`
should do the trick. GNU uname also has -i, but that's not a POSIX requirement.

And you could also look into $Config::Config{archname} and extract the architecture from that.

Replies are listed 'Best First'.
Re^2: Architecture of processor
by Anonymous Monk on Mar 04, 2009 at 12:56 UTC
    Thanks! It exactly what I need.