Hacker News new | ask | show | jobs
by draegtun 4843 days ago
It's very similar in that they both expose the OO inner workings but after that they're quite different.

Perl requires a blessed reference (which doesn't have to be a hash but often it is the best option!) which only contains the objects state. So unlike a Lua object hash the behaviour is maintained by Perl in dynamically scoped packages/subroutines (classes/methods).