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


in reply to Re: How Do I Bundle Perl Modules and Their Tests Into the Same File?
in thread How Do I Bundle Perl Modules and Their Tests Into the Same File?

would this work if the module is required, from a sub? for instance:
sub foo { require abc; abc->bar(); }

Replies are listed 'Best First'.
Re^3: How Do I Bundle Perl Modules and Their Tests Into the Same File?
by BrowserUk (Patriarch) on Feb 13, 2006 at 12:46 UTC

    Yes.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.