method r

Documentation for method r, assembled from the following types:

class IO::Path

From IO::Path

(IO::Path) method r

Defined as:

method r(--> Bool:D)

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

TIP: use smartmatch with Pairs to perform multiple file tests.

class IO::Special

From IO::Special

(IO::Special) method r

method r(IO::Special:D: --> Bool)

The 'read access' file test operator, returns True if this is the standard input handle, False otherwise.