The x routine

Combined from primary sources listed below.

In class IO::Path ( Type/IO/Path )§

See primary docmentation in context for method x.

method x§

method x(IO::Path:D: --> Bool:D)

Returns True if the invocant is a path that exists and is executable. The method will fail with X::IO::DoesNotExist if the path points to a non-existent filesystem entity.

NOTE: If the file is a script (an executable text file and not a native executable), and the file has only executable permissions and no read permissions, this method will return True but trying to execute will fail. That is a limitation of the operating system.

In class IO::Special ( Type/IO/Special )§

See primary docmentation in context for method x.

method x§

method x(IO::Special:D: --> False)

The 'execute access' file test operator, always returns False.