4 ms·
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
by draegtun 14y 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).