method curupdir
1 | class IO::Spec::Unix |
1.1 | (IO::Spec::Unix) 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 .curupdir; # OUTPUT: «none(., ..)»my = <. foo .. bar>;say .grep(* eq .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
.