We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccae74a commit 3cf943dCopy full SHA for 3cf943d
doc/Type/IO/Path.pod6
@@ -151,9 +151,12 @@ created with if it is not.
151
152
=head2 method relative
153
154
- method relative(IO::Path:D: $base = ~$*CWD --> Str)
+ method relative(IO::Path:D: $base = $*CWD --> Str)
155
156
-Returns a new C<Str> object relative to the C<$base> path.
+Returns a new C<Str> object with the path relative to the C<$base>. If C<$base>
157
+is not provided, C<$*CWD> is used in its place. If the invocant is not
158
+an absolute path, it's first made to be absolute using the C<.CWD>
159
+attribute the object was created with, and then is made relative to C<$base>.
160
161
=head2 method parent
162
0 commit comments