Skip to content

Commit 8964acd

Browse files
authored
Mention &*chdir in p5-6 chdir docs
1 parent c64c3a1 commit 8964acd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/Language/5to6-perlfunc.pod6

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,11 @@ function that mimics the original Perl 5 behaviour as much as possible.
211211
Works as it does in Perl 5 but B<must> take an argument. The behaviour
212212
of C<chdir()> (with regards to looking at HOME and LOGDIR) is not supported.
213213
214-
In Perl 6, C<chdir> only changes the C<$*CWD> dynamic variable. It does
215-
B<not> actually change the default directory from the OS's point of view.
214+
In Perl 6, L<chdir> only changes the C<$*CWD> dynamic variable. It does
215+
B<not> actually change the default directory from the OS's point of view; the
216+
special dynamic-variable routine L«C<&*chdir>|/routine/&*chdir> can be used
217+
for that, if needed.
218+
216219
This is done this way, because there is no concept of a "default directory
217220
per OS thread". And since Perl 6 does not fork, but only does threading,
218221
it was felt that the "current directory" concept should be in the C<$*CWD>

0 commit comments

Comments
 (0)