At 21.20 9/21/97, Nat Irons wrote: >>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? Yes. Paul Schinder corrected me in a recent post. Or you can utilize the lib pragma, just for this situation, i.e.: use lib 'my:path:'; -- Chris Nandor pudge@pobox.com http://pudge.net/ %PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10 1FF7 7F13 8180 B6B6']) ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch