in reply to Re^2: lazy evaluation of sub arg
in thread lazy evaluation of sub arg
Perhaps the subroutine prototype on the definition of promise is turning it into an anonymous sub.
Prototypes change the parsing of code, and they can only change the parsing of subsequent code. When you declare that a subroutine takes a block argument with a prototype, the lexer has to know that that block represents an anonymous subroutine, not a hash reference.
|
---|