* Steffen Mueller <nj88udd02@sneakemail.com> [2009-02-24 09:55]: > BEGIN { if ($] >= 5.11) { require deprecate; deprecate->import(); } } > > which does the same without additional call stacks. And reads > more easily (to me), too. BEGIN { eval 'use deprecate' if $] >= 5.11 } There is an extra stack frame here but it should be of no concern. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>Thread Previous | Thread Next