The w routine

Combined from primary sources listed below.

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

See primary docmentation in context for method w.

method w§

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

The 'write access' file test operator, returns True only if this instance represents either the standard output (<STOUT>) or the standard error (<STDERR>) handle.

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

See primary docmentation in context for method w.

method w§

method w(IO::Path:D: --> 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.