http://qs321.pair.com?node_id=11138531


in reply to Indirect Object Syntax

chromatic nicely summarises the parsing problem here:

new Foo has two barewords, and whenever the Perl parser encounters barewords, it has to guess at what they are. Sometimes it has hints at what those barewords are (if it's encountered declarations of filehandles or subroutines) and it can guess correctly. Sometimes it doesn't have hints, because Perl embraces late binding.

See also:

Related:

Added later:

Quoting References

Updated Apr 1 2024 : added new Quoting References section (not a prank)