method read
| 1 | role IO::Socket | 
| 1.1 | (IO::Socket) method read | 
| 2 | class IO::CatHandle | 
| 2.1 | (IO::CatHandle) method read | 
| 3 | class IO::Handle | 
| 3.1 | (IO::Handle) method read | 
Documentation for method read assembled from the following types:
role IO::Socket
From IO::Socket
(IO::Socket) method read
method read(IO::Socket: Int(Cool) )
Reads $bytes bytes from the socket and returns them in a Blob.
Fails if the socket is not connected.
class IO::CatHandle
From IO::CatHandle
(IO::CatHandle) method read
Defined as:
method read(IO::CatHandle: Int(Cool) = 65536 --> Buf)
Reads up to $bytes bytes from the handle and returns them in a Buf. $bytes defaults to an implementation-specific value (in Rakudo, the value of $*DEFAULT-READ-ELEMS, which by default is set to 65536). It is permitted to call this method on handles that are not in binary mode.
(my = 'foo'.IO).spurt: 'meow';(my = 'bar'.IO).spurt: Blob.new: 4, 5, 6;with IO::CatHandle.new: :bin, ,# Non-binary mode is OK too:with IO::CatHandle.new: ,
class IO::Handle
From IO::Handle
(IO::Handle) method read
Defined as:
method read(IO::Handle: Int(Cool) = 65536 --> Buf)
Binary reading; reads and returns up to $bytes bytes from the filehandle. $bytes defaults to an implementation-specific value (in Rakudo, the value of $*DEFAULT-READ-ELEMS, which by default is set to 65536). This method can be called even when the handle is not in binary mode.
(my = 'foo'.IO).spurt: 'I ♥ Perl';given .open