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 9102b51 commit 5c1d3b6Copy full SHA for 5c1d3b6
doc/Type/IO/Spec/Unix.pod6
@@ -22,6 +22,17 @@ need to use C<IO::Spec::*>. Use L«C<IO::Path>|/type/IO::Path» instead.
22
Returns a string that represents C<$path>, but relative to C<$base> path.
23
Both C<$path> and C<$base> may be relative paths C<$bar> defaults to C<$*CWD>
24
25
+=head2 method basename
26
+
27
+ method basename(Str:D $path --> Str:D)
28
29
+Takes a path as a string and return a possibly-empty portion after the last
30
+slash:
31
32
+ IO::Spec::Unix.basename("foo/bar/") .perl.say; # OUTPUT: «""»
33
+ IO::Spec::Unix.basename("foo/bar/.").perl.say; # OUTPUT: «"."»
34
+ IO::Spec::Unix.basename("foo/bar") .perl.say; # OUTPUT: «"bar"»
35
36
=head2 method tmpdir
37
38
Defined as:
0 commit comments