http://www.perlmonks.org?node_id=919838


in reply to for loop ?

Ignoring the confusing for, I'd also point out that spawning uname is completely unnecessary. Everything that code does can be done by useing Config.pm and interrogating %Config.

Maybe I should add architecture stuff to Devel::CheckOS.

Replies are listed 'Best First'.
Re^2: for loop ?
by Tanktalus (Canon) on Aug 11, 2011 at 21:13 UTC

    That's not entirely true. You can compile Perl for Linux/ia32 and run it on Linux/amd64. %Config won't tell you that. You can compile Perl for HP/PA-RISC and run it on HP/ia64 (though that's not what the OP is doing). %Config won't tell you that, either.

    Yes, been there, done that. Though I'd still prefer POSIX::uname over `uname`.