How can I hook into Perl’s print?

There are a number of built-ins that you can override (see perlsub). However, print is one of the built-ins that doesn’t work this way. The difficulties of overriding print are detailed at this perlmonk’s thread. However, you can Create a package Tie a handle Select this handle. Now, a couple of people have given the … Read more