#884318 filter_read in block mode makes DATA handle empty

Package:
perl
Source:
perl
Description:
Larry Wall's Practical Extraction and Report Language
Submitter:
Christoph Berg
Date:
2017-12-16 09:30:07 UTC
Severity:
normal
Blocked By:
Bug Title
884518

  3

filter_read in block mode makes DATA handle empty

normal stable testing unstable over 8 years ago

#884318#3
Date:
2017-12-13 12:05:58 UTC
From:
To:
Merely adding "use Switch;" to a perl program breaks the use of
__DATA__ sections via <DATA>:

$ cat switch.pl
use Switch;
print <DATA>;
__DATA__
foobar

$ perl switch.pl

$ cat switch.pl
#use Switch;
print <DATA>;
__DATA__
foobar

$ perl switch.pl
foobar

This is not documented under LIMITATIONS in Switch(3pm).

Christoph

#884318#6
Date:
2017-12-13 20:27:14 UTC
From:
To:
-=| Christoph Berg, 13.12.2017 13:05:58 +0100 |=-

Right.

As noted in https://rt.cpan.org/Public/Bug/Display.html?id=97440 this
is a bug/limitation of Filter::Util::Call (reported as
https://rt.cpan.org/Public/Bug/Display.html?id=101033)


Cheers,
    dam

#884318#29
Date:
2017-12-16 09:26:10 UTC
From:
To:
Control: clone -1 -2
Control: reassign -2 libfilter-perl 1.58-1
Control: block -1 with -2

As Filter::Util::Call is also in the separate libfilter-perl package,
this needs to be fixed (or maybe just documented as a limitation?) there
first. The fix can then be backported to the Perl core version, or can
trickle there later by the normal upstream process.