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

Re: [MacPerl] lib paths



Douglas =?UNKNOWN?Q?Wikstr=F6m?= writes:

>IĒm new to MacPerl so be kind...
>
>When i include a file:
>
>require('routines_I_needl.pl');
>
>MacPerl donĒt find it, even though I have set the paths in the 
>preferences menu.
>
>What do I do wrong? (or what have I missed out)
>
>/Douglas Wikstrom

Did you place 'routines_I_needl.pl' in the 'MacPerl f:lib:' folder ?

What I would like to know is - does "use" work? I seem to think it does not 
(though it has been a while since I have been able to test this.)
Also - do hierachical modules get imported when the parent is used? e.g.:

 #!perl
 use Foo;
 $return0 = &Foo::Method();
 $return1 = &Method();

Should yield the same return values (note they are not necessarily new() object 
refs) - Shouldn't they?

Peter Prymmer
pvhp@lns62.lns.cornell.edu