| 1 | package App::Perlbrew::Sys; | ||||||||||
| 2 | 71 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 71 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 71 | ▶ | use Config; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | sub osname { | ||||||||
|
Subroutine
osname: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 7 | $Config{osname} | ||||||||||
| 8 | 1 | } | |||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | sub archname { | ||||||||
|
Subroutine
archname: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 11 | $Config{archname} | ||||||||||
| 12 | 1 | } | |||||||||
| 13 | |||||||||||
| 14 | 6 | ▶ | sub os { | ||||||||
|
Subroutine
os: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | $Config{osname} | ||||||||||
| 16 | 6 | } | |||||||||
| 17 | |||||||||||
| 18 | 0 | ▶ | sub _uname_m { | ||||||||
|
Subroutine
_uname_m: not called CC=1 SCAR=6.9
| |||||||||||
| 19 | 0 | my $uname = qx(uname -m 2>/dev/null); | |||||||||
| 20 | 0 | chomp($uname); | |||||||||
| 21 | 0 | return $uname; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 2 | ▶ | sub arch { | ||||||||
|
Subroutine
arch: called CC=2 SCAR=8.1
Pod
undocumented
| |||||||||||
| 25 | 2 | ▶ | if (os() eq 'darwin') { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 0 | return _uname_m(); | |||||||||
| 27 | } else { | ||||||||||
| 28 | 2 | return (split(/-/, $Config{myarchname}, 2))[0]; | |||||||||
| 29 | } | ||||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 71 | 1; | |||||||||