develooper Front page | perl.perl5.porters | Postings from January 2019

[perl #133524] File:Line is not reported for syntax error

From:
Tony Cook via RT
Date:
January 2, 2019 00:28
Subject:
[perl #133524] File:Line is not reported for syntax error
Message ID:
rt-4.0.24-27955-1546388927-487.133524-15-0@perl.org
On Mon, 17 Sep 2018 08:19:42 -0700, kes-kes@yandex.ru wrote:
> 
> Hi.
> 
> For the script:
> 
> $ cat script.pl
> sub t1 {}
> sub t2 (}
> 
> No line for syntax error is reported:
> 
> $ perl script.pl
> Prototype not terminated.
> 
> As you can see this even do not report the file where error exists.

Fixed in 7122d783e33c1d4b9b5a037eef231fae4c2d76cd.

tony@mars:.../git/perl$ ./perl ../133524.pl 
Prototype not terminated at ../133524.pl line 2.

Tony

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=133524



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About