In IO::CatHandle§
See primary documentation in context for method nl-in
method nl-in(IO::CatHandle:) is rw
Sets the invocant's $.nl-in
attribute to the assigned value, which can be a Str
or a List
of Str
, where each Str
object represents the end-of-line string. All source handles, including the active one will use the provided $.nl-in
value. Note that source handle boundary is always counted as a new line break.
(my = 'foo'.IO).spurt: "A\nB\nC";(my = 'bar'.IO).spurt: "DxEx";with IO::CatHandle.new: ,
In IO::Handle§
See primary documentation in context for method nl-in
method nl-in(--> Str) is rw
One of the attributes that can be set via .new
or open. Defaults to ["\x0A", "\r\n"]
. Takes either a Str
or Array
of Str
specifying input line ending(s) for this handle. If .chomp
attribute is set to True
, will strip these endings in routines that chomp
, such as get
and lines
.
with 'test'.IO