See Original text in context
method opened(IO::Handle: --> Bool)
Returns True
if the handle is open, False
otherwise.
See Original text in context
method opened(IO::CatHandle: --> Bool)
Returns True
if the invocant has any source handles, False
otherwise.
say IO::CatHandle.new .opened; # OUTPUT: «False»say IO::CatHandle.new().opened; # OUTPUT: «True»(my = 'foo'.IO).spurt: "A\nB\nC";with IO::CatHandle.new: