{ no strict 'refs'; *{ "UNIVERSAL::to_yaml" } = sub { # Put some code here. }; }
Some functions require you to redefine in CORE::GLOBAL:: instead. There's no real rhyme or reason (from the outside looking in) - you can find more by looking at the appropriate documentation.{ no strict 'refs'; *{ "CORE::<funcname>" } = sub { ... }; }
In reply to Re: Reopening builtin classes, redefining builtin functions?
by dragonchild
in thread Reopening builtin classes, redefining builtin functions?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |