Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: I would have expected a syntax error hereby LanX (Saint) |
on Oct 19, 2018 at 16:50 UTC ( [id://1224347]=note: print w/replies, xml ) | Need Help?? |
To elabotate further: the odd words to today are considered packages, the even ones got here methods. Both are not required to exist at compile time. It's a variation of new Class arg-list just twice. Hence got To (here Today () ) (capitalizing classes for clarity) Nb: If the bare words where already pre defined subs, Perl would parse them differently. I see two solutions:
the latter could be implemented right away.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|