|Think about Loose Coupling|
Re: Modulino, perl -d question.by LanX (Cardinal)
|on Feb 20, 2012 at 18:35 UTC||Need Help??|
>At this stage caller returns a valid value (rather than undef) and main is not called. :-(
Not reproducable, for me caller is equally false, when run under the debugger.
I'm not sure what you want to debug ... main() or your test suite?
IMHO there are good reasons for both cases.
So maybe you should explicitly check if you are running under the debugger, eg. by checking if &DB::DB is defined.
like that you can provide a run argument to decide which branch exactly should be debugged.