Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: Indirect Object Syntaxby choroba (Cardinal) |
on Nov 07, 2021 at 21:50 UTC ( [id://11138559]=note: print w/replies, xml ) | Need Help?? |
> Anyway, Perl should check for the missing comma. I suppose this happens too late for the parser. IIRC, the parser can only check the following token when deciding whether the { starts a block or an anonymous hash. That's also why the ; helps.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|