"be consistent" | |
PerlMonks |
Re: !Overriding Builtin printby Jenda (Abbot) |
on Oct 20, 2003 at 17:43 UTC ( [id://300675]=note: print w/replies, xml ) | Need Help?? |
You are not supposed to override print (that'd be far too global to be usefull anyway), but to create a class and tie a FILEHANDLE to it. If you then select that handle your print()s will do whatever you want at all. See perldoc perltie and perldoc Tie::Handle. There are two different classes for tied FILEHANDLEs within Mail::Sender is you wanted more examples. Jenda Edit by castaway: Closed small tag in signature
In Section
Meditations
|
|