Documentation for method w

Documentation for method w, assembled from the following types:

class IO::Path

From IO::Path

(IO::Path) method w

Defined as:

method w(--> Bool:D)

Returns True if the invocant is a path that exists and is writable. 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 w

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

The 'write access' file test operator, returns True if this is the standard output or standard error handle, False if it is the standard input.

class Proc::Async

From Proc::Async

(Proc::Async) method w

method w(Proc::Async:D:)

Returns a true value if :w was passed to the constructor, that is, if the external program is started with its input stream made available to output to the program through the .print, .say and .write methods.