Base class for callback based handles.
my $fh = IO::Handle::Prototype->new( getline => sub { my $fh = shift; ... }, );
You probably want IO::Handle::Prototype::Fallback instead.