File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ By default, only C<:d> test is performed.
40
40
chdir :r, :w '/tmp'; # … check its .r and .w are True
41
41
chdir '/not-there'; # returns Failure
42
42
43
+ Note that the following construct is a mistake:
44
+
45
+ my $*CWD = chdir '/tmp/';
46
+
47
+ Use L « C < indir > |/routine/indir» instead.
48
+
43
49
= head2 sub &*chdir
44
50
45
51
Defined as:
@@ -63,6 +69,16 @@ to specify which file tests to perform.
63
69
&*chdir('/tmp'); # change $*CWD and process's current directory to '/tmp'
64
70
&*chdir('/not-there'); # returns Failure
65
71
72
+ Note that the following construct is a mistake:
73
+
74
+ my $*CWD = &*chdir('/tmp');
75
+
76
+ Use the following, instead; or see L « C < indir > |/routine/indir» if
77
+ you do not need to change process's current directory:
78
+
79
+ temp $*CWD;
80
+ &*chdir('/tmp');
81
+
66
82
= head2 sub indir
67
83
68
84
Defined as:
You can’t perform that action at this time.
0 commit comments