Documentation for routine get
Documentation for routine get, assembled from the following types:
method get(IO::Handle: --> Str)multi sub get (IO::Handle = --> Str)
Reads a single line of input from the handle, removing the trailing newline characters (as set by
.nl-in) if the handle's
.chomp attribute is set to
Nil, if no more input as available. The subroutine form defaults to
$*ARGFILES if no handle is given.
.get.say; # Read one line from the standard inputmy = open 'filename';.get.say; # Read one line from a file.close;say get; # Read one line from $*ARGFILES
Return one line of the open file handle.
Reads a line from the socket and returns it. Returns the Str type object on end-of-file (EOF).