This kind of functionality (in the object oriented way that Ruby does it) is no available in the core, but though CPAN modules. For instance autobox provides the ability to treat any Perl reference as an object. The autobox module itself does not define anything, but you can either build your own system or use autoload::Core or Moose::Autobox.
In addition to this, you might want to look at Moose itself, it provides a object meta-model similar to what will be in Perl 6. With it, you can do many of the Ruby meta-programming tricks and some that are not even possible in Ruby.
In reply to Re: Reopening builtin classes, redefining builtin functions?
by stvn
in thread Reopening builtin classes, redefining builtin functions?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |