http://qs1969.pair.com?node_id=431818


in reply to Re^3: I hate the leading underscores.
in thread I hate the leading underscores.

Private methods/variables should have no reason to be called outside a class.

How about whitebox unit testing? I do this all the time.

        $perlmonks{seattlejohn} = 'John Clyman';

Replies are listed 'Best First'.
Re^5: I hate the leading underscores.
by RazorbladeBidet (Friar) on Feb 17, 2005 at 15:21 UTC
    Good point - looks like that comes up in JUnit testing as well:

    JUnit

    How do they solve it? Reflection :) Pretty much a hack around it, I suppose.