in reply to Re: I would have expected a syntax error here
in thread Solved! I would have expected a syntax error here
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
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: I would have expected a syntax error here
by Corion (Patriarch) on Oct 19, 2018 at 17:37 UTC | |
by roboticus (Chancellor) on Oct 19, 2018 at 17:45 UTC | |
by LanX (Saint) on Oct 19, 2018 at 18:30 UTC | |
by Corion (Patriarch) on Oct 19, 2018 at 18:37 UTC |