Re:Perl code that is syntactically correct only on Fridays
by cestith on Wednesday February 16, 2022 @10:37AM
(#30361325)
Perl is not parsed as it is executed. It is compiled to opcodes then run. The BEGIN block, however, explicitly runs code at compile time. It is literally compiling different code on different days, then attempting to run it.
[ Parent
| on HN ]
Re:Perl code that is syntactically correct only on Fridays
by RandalSchwartz on Wednesday February 16, 2022 @04:00PM
(#30365609)
Technically not opcodes, but internal Data Structures. A serializer was written for that, to permit ".pmc files".