in reply to RE: Re: function encapsulation
in thread function encapsulation

That's not to say that you can't make changes to @INC which will affect 'use' statements. Two ways that spring to mind are:

  1. Put the code that changes @INC in a BEGIN block.
  2. Use use lib;
--
<http://www.dave.org.uk>

European Perl Conference - Sept 22/24 2000, ICA, London
<http://www.yapc.org/Europe/>

Replies are listed 'Best First'.
RE: RE: RE: Re: function encapsulation
by maverick (Curate) on Jul 13, 2000 at 19:54 UTC
    True. You can also put the 'require's inside a BEGIN block and get their syntax checked by perl -c. I'm sure there's more examples we can think of...

    /\/\averick