| Store | Cart

[perl #121501] Empty code block {} causes syntax error (misparsed as anonymous hash constructor?) before 'sub'

From: Ed Avis via RT <perl...@perl.org>
Mon, 20 Oct 2014 07:32:16 -0700
In as far as Perl's grammar is defined by its implementation, it can never have bugs.  The parsing of {} as a hash constructor (and subsequent parse failure) is by definition correct, since it is what perl does.

I suggest this report be closed since there is no practical way to implement it given Perl's current parsing mechanism - see earlier comments.

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

Recent Messages in this Thread
James E Keenan via RT Oct 19, 2014 11:28 pm
James E Keenan via RT Oct 20, 2014 10:45 pm
Father Chrysostomos via RT Oct 20, 2014 12:09 am
Ed Avis via RT Oct 20, 2014 02:32 pm
Messages in this thread