Skip to content

Commit

Permalink
Merge pull request #2645 from perl6/document-two-dynamic-vars
Browse files Browse the repository at this point in the history
Document $*USAGE and $*COLLATE
  • Loading branch information
JJ committed Mar 3, 2019
2 parents 9217269 + 33ab443 commit dfcf1de
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/Language/variables.pod6
Expand Up @@ -1540,6 +1540,25 @@ X<|$*SAMPLER>
The current L<Telemetry::Sampler> used for making snapshots of system state.
Only available if L<Telemetry|/type/Telemetry> has been loaded.
X<|$*USAGE>
=head4 C<$*USAGE>
This is a L<Str> object that holds value of the auto-generated USAGE
message.
=for code
sub MAIN($a, :$b, UInt :$ehehe) {
say $*USAGE; # OUTPUT: «Usage:␤ perl6.pl6 [-a=<Int>] [-b=<Str>] [--<opts>=...]»
}
It is accessible only inside of MAIN sub.
X<|$*COLLATION>
=head4 C<$*COLLATION>
This is a L<Collation|/type/Collation> object that can be used to
configure Unicode collation levels.
=head1 Naming conventions
It is helpful to know our naming conventions in order to understand what codes
Expand Down

0 comments on commit dfcf1de

Please sign in to comment.