Documentation for routine basename

Documentation for routine basename, assembled from the following types:

class IO::Path

From IO::Path

(IO::Path) method basename

method basename(IO::Path:D:)

Returns the basename part of the path object. That is, it returns the name of the file relative to its directory.

say IO::Path.new("docs/README.pod").basename;      # OUTPUT: «README.pod␤» 

class IO::Spec

From IO::Spec

(IO::Spec) method basename

method basename(IO::Spec:D: Str $path --> Str)

class IO::Spec::Unix

From IO::Spec::Unix

(IO::Spec::Unix) method basename

method basename(IO::Spec:D: Str $path --> Str)

class IO::Spec::Cygwin

From IO::Spec::Cygwin

(IO::Spec::Cygwin) method basename

method basename(IO::Spec:D: Str $path --> Str)

class IO::Spec::QNX

From IO::Spec::QNX

(IO::Spec::QNX) method basename

method basename(IO::Spec:D: Str $path --> Str)

class IO::Spec::Win32

From IO::Spec::Win32

(IO::Spec::Win32) method basename

method basename(IO::Spec:D: Str $path --> Str)