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);
In reply to Re: overriding print built-in
by grantm
in thread overriding print built-in
by jeremyh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |