Skip to content

Commit

Permalink
Use numification / stringification shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 4, 2018
1 parent ac058c9 commit d1f39dd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions doc/Language/5to6-perlvar.pod6
Expand Up @@ -86,8 +86,8 @@ In Perl 6 the group information is handled by C<$*GROUP>,
which holds an object of type L<IntStr|/type/IntStr>
and therefore can be used either within a string
or a numeric context.
The group id is therefore obtained via C<$*GROUP.Numeric>, while the
group name via C<$*GROUP.Str>.
The group id is therefore obtained via C<+$*GROUP>, while the
group name via C<~$*GROUP>.
=item $EFFECTIVE_GROUP_ID
Expand All @@ -108,9 +108,8 @@ which holds an object of type L<IntStr|/type/IntStr>
and therefore can be used either within a string
or a numeric context (this is similar to how the group
information is handled by the C<$*GROUP> object).
The user id is therefore obtained via C<$*USER.Numeric>, while the
username via C<$*USER.Str>.
The user id is therefore obtained via C<+$*USER>, while the
username via C<~$*USE>.

This comment has been minimized.

Copy link
@MasterDuke17

MasterDuke17 Jun 4, 2018

Contributor

This looks like a typo, ~$*USE instead of ~$*USER?

=item $EFFECTIVE_USER_ID
Expand Down

0 comments on commit d1f39dd

Please sign in to comment.