That's basically what the book suggests. Thanks!
In reply to Re^2: testing in perl: main and caller by chromatic in thread testing in perl: main and caller by water