perl-oo

Perl: How to create objects on the fly?

My goal is to be able to use $obj like this: print $obj->hello() . $obj->{foo}; And I would like to create an object inline, maybe using something like this: my $obj = ( foo => 1, hello => sub { return 'world' } ); but when I try to use $obj as an object, I get an error saying that $obj has not been blessed. Is there some b...

Is there a problem in perl 5.12.2 using splice on @ISA?

The following is a debug session on Perl 5.12. Does this make any sense? Does UNIVERSAL cache a version of the @ISA variable, which if forever uses thereafer. Back before Class::ISA was deprecated, I used to call Class::ISA::self_and_super_path to get the internals to relook at the @ISA array. Since it is now considered unnecessary, how ...