in reply to What for sigils were allowed to be separated from identifiers?

The BNF syntax for Perl is very loose. You will from time to time find things (especially in use declarations) that ought to produce syntax errors, but don't.
  • Comment on Re: What for sigils were allowed to be separated from identifiers?

Replies are listed 'Best First'.
Re^2: What for sigils were allowed to be separated from identifiers?
by Eily (Monsignor) on Nov 29, 2017 at 18:04 UTC

    chromatic said

    First of all, there's no "BNF grammar" in the interpreter. There's a parser and a lexer which you could, if you were enterprising enough, potentially represent in Backus-Naur Form, but it's not expressed as such anywhere within the Perl source code, and there is no singular representation of grammar within the Perl source.

    I don't know much about the subject, but I'd be willing to believe that chromatic does.

    You say "especially in use declarations", are you actually making a reference to the thread this answer came from?