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)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Indirect Object Syntax
by Bod (Parson) on Nov 07, 2021 at 12:45 UTC | |
by haukex (Archbishop) on Nov 07, 2021 at 13:21 UTC | |
by Bod (Parson) on Nov 07, 2021 at 14:25 UTC | |
by bliako (Abbot) on Nov 09, 2021 at 09:26 UTC | |
by eyepopslikeamosquito (Archbishop) on Nov 07, 2021 at 20:49 UTC | |
Re^2: Indirect Object Syntax
by ikegami (Patriarch) on Nov 08, 2021 at 17:58 UTC |