DOKK / manpages / debian 11 / libio-handle-util-perl / IO::Handle::Prototype.3pm.en
IO::Handle::Prototype(3pm) User Contributed Perl Documentation IO::Handle::Prototype(3pm)

IO::Handle::Prototype - 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.

2021-01-03 perl v5.32.0