#884286 use Switch breaks <DATA>

Package:
libswitch-perl
Source:
libswitch-perl
Submitter:
Christoph Berg
Date:
2017-12-16 09:30:04 UTC
Severity:
normal
Blocked By:
Bug Title
884318

  3

filter_read in block mode makes DATA handle empty

normal stable testing unstable over 8 years ago

884518

  3

filter_read in block mode makes DATA handle empty

normal stable testing unstable over 8 years ago

#884286#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

#884286#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