Documentation for method SPEC assembled from the following pages:

Class: IO::Path §

From IO::Path

(IO::Path) method SPEC §

Defined as:

method SPEC(IO::Path:D: --> IO::Spec)

Returns the IO::Spec object that was (implicitly) specified at object creation time.

my $io = IO::Path.new("/bin/bash");
say $io.SPEC;                            # OUTPUT: «(Unix)␤» 
say $io.SPEC.dir-sep;                    # OUTPUT: «/␤»