Bug#895705: missing ";" passed syntax checks
Niko Tyni
ntyni at debian.org
Sun Apr 15 08:45:57 BST 2018
On Sun, Apr 15, 2018 at 05:57:01AM +0800, 積丹尼 Dan Jacobson wrote:
> Package: perl
> Version: 5.26.1-5
> Severity: wishlist
>
> This missing ";" passed syntax checks:
>
> use Data::Dumper;
> use Time::Piece
> $Data::Dumper::Indent = $Data::Dumper::Sortkeys = 1;
> my $doc;
That's because it is valid syntax: the assignments get evaluated and
return the assigned value, so the effect is 'use Time::Piece 1;',
Had you assigned 2 to the variables you'd have gotten an
import error:
Time::Piece version 2 required--this is only version 1.31 at /usr/share/perl/5.26/Exporter/Heavy.pm line 111.
BEGIN failed--compilation aborted at t.pl line 3.
--
Niko Tyni ntyni at debian.org
More information about the Perl-maintainers
mailing list