in reply to Tell if arch is HP or HPIA64
I needed a similar thing once, could not think of anything better than this:
sub arch { my $arch = `$^X -v`; $arch =~ s/.* built for //s; $arch =~ s/\n.*//s; return $arch; }
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Tell if arch is HP or HPIA64
by Anonymous Monk on Aug 30, 2012 at 14:44 UTC | |
by tmurnane (Novice) on Aug 30, 2012 at 15:47 UTC | |
by choroba (Cardinal) on Aug 30, 2012 at 15:08 UTC | |
Re^2: Tell if arch is HP or HPIA64
by Tux (Canon) on Aug 30, 2012 at 16:18 UTC |
In Section
Seekers of Perl Wisdom