Vincent Bufferne wrote: > Hi, > > Within a perl script, I would like to get the architecture type of the > machine (ia32, ia64, pa-risc...). > Is there an equivalent routine to the shell call "uname -a" in Perl? >
It's usefulness is very variable, depending on the platform you're using, but you might try use POSIX 'uname' On my Cygwin installation the following works fine: $ perl -MPOSIX=uname -e 'print map "> $_\n", uname' > CYGWIN_98-4.10 > home > 1.3.22(0.78/3/2) > 2003-03-18 09:20 > i686 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]