http://www.perlmonks.org?node_id=542731


in reply to overriding print built-in

While you can't override print, you may be able to achieve your desired result using a tie instead.

For example, Sprog uses this module to translate code like this ...

print @args;

... into code like this ...

$some_object->print(@args);