This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #84942] perltie.pod READLINE list context
In perltie.pod the handle READLINE says
The method should return undef when there is no more data.
which made me think that's what it should always do, and didn't need to
pay attention to wantarray().
If I'm not mistaken in list context READLINE should return empty list
for no more data. It'd be good if the docs noted that, and perhaps
cross referenced to perlfunc for the gory details of what readline
should do.
Maybe something like the following, unless someone can think of a better
contrivance for the sample.