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


in reply to Re^2: Testing -- making a new constructor behave differently for one package
in thread Testing -- making a new constructor behave differently for one package

Why does it assume that? The around new => sub {}; stuff doesn't need to be in the same file where the Foo class is defined. I'd probably put it in the ".t" file.

Replies are listed 'Best First'.
Re^4: Testing -- making a new constructor behave differently for one package
by tj_thompson (Monk) on Jan 31, 2012 at 17:59 UTC
    That actually never occurred to me. Excellent point and it would have been another way to accomplish my objective. Thanks for the insight.