in reply to Re^2: New Discovery!!! (sub call without parentheses)
in thread New Discovery!!! (sub call without parentheses)
dynamic in the sense of not exploding at compile-time.
> I think Perl does a similar thing
not really?
Perl looks at runtime into the symbol table of the package. I wouldn't call this linking, but I'm no C expert.
DB<10> func() Undefined subroutine &main::func called at (eval 19)[C:/Perl_524/lib/p +erl5db.pl:737] line 2. DB<11> eval { sub func {} } # created at run-time DB<12> func() DB<13> p \&main::func # STASH entry CODE(0x58443b8) DB<14>
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^4: New Discovery!!! (sub call without parentheses)
by markong (Pilgrim) on Dec 08, 2018 at 22:50 UTC | |
by LanX (Saint) on Dec 08, 2018 at 23:38 UTC |