Skip to content

Commit db36655

Browse files
committed
[io grant] Remove tip to use $*SPEC to detect OS
We have $*DISTRO for that purpose
1 parent 0511e07 commit db36655

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/Language/variables.pod6

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ X<|$*SPEC>X<|$*TMPDIR>X<|$*THREAD>X<|$*SCHEDULER>
10941094
------------------+--------------------------------------------
10951095
$*KERNEL | Which kernel am I running under?
10961096
------------------+--------------------------------------------
1097-
$*DISTRO | Which OS distribution am I running under?
1097+
$*DISTRO | Which OS distribution am I running under? (e.g. C<say "Some sort of Windows" if $*DISTRO.is-win>)
10981098
------------------+--------------------------------------------
10991099
$*VM | Which virtual machine am I running under?
11001100
------------------+--------------------------------------------
@@ -1130,8 +1130,7 @@ X<|$*SPEC>X<|$*TMPDIR>X<|$*THREAD>X<|$*SCHEDULER>
11301130
| "home directory" cannot be determined it will be L<Any>
11311131
------------------+--------------------------------------------
11321132
$*SPEC | The appropriate L<IO::Spec> sub-class for the platform that
1133-
| the program is running on. For OS-specific code, use smartmatch:
1134-
| C<say "We are on Windows!" if $*SPEC ~~ IO::Spec::Win32>
1133+
| the program is running on.
11351134
------------------+--------------------------------------------
11361135
$*TMPDIR | An L<IO::Path> object representing the "system temporary directory"
11371136
------------------+--------------------------------------------

0 commit comments

Comments
 (0)