Documentation for method curdir assembled from the following pages:

Class: IO::Spec::Unix §

From IO::Spec::Unix

(IO::Spec::Unix) method curdir §

Defined as:

method curdir()

Returns a string representing the current directory:

say '.' eq $*SPEC.curdir# OUTPUT: «True␤»