[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Using libwww with MacPerl 5.1.3 - a beginner's question



>You don't add modules, you add paths.  And you can add it just like any
>array.  I.e.:
>
>        push @INC, 'my:path:';

this is something I've been absently wondering about lately: use implies a
BEGIN block, which means "use anyModule;" will execute just after it's
parsed.  At that point, the push function won't have executed yet, and perl
won't know to look in my:path.  So am I missing a subtlety, missing a
not-so-subtlety, or is it going to have to be:

BEGIN { push @INC, 'my:path:'; }

in order to make the path and its contents visible in time for "use" to
find them?

  -nat



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch