method curupdir
Documentation for method curupdir
assembled from the following types:
class IO::Spec::Unix
From IO::Spec::Unix
(IO::Spec::Unix) method curupdir
Defined as:
method curupdir()
Returns a none
Junction of strings representing the current directory and the "one directory up":
say $*SPEC.curupdir; # OUTPUT: «none(., ..)» my @dirs = <. foo .. bar>; say @dirs.grep(* eq $*SPEC.curupdir); # OUTPUT: «(foo bar)»
Neither foo
nor bar
are equal to the representation of the current or parent directory, that is why they are returned by grep
.