Al Hospers wrote:
>>I had a similar problem a few days ago. My Perl packages were in the
>>same directory as the main program. If this applies to your
>>
> situation,
>
>>you may want to use this code snippet:
>>
>>use Cwd;
>>BEGIN{unshift @INC, cwd;}
>>
>>When you put this code in a BEGIN block, it gets evaluated before
>>
> the
>
>>rest of the program is compiled, so you won't get a failure when
>>
> Perl
>
>>tries to load the packages you "require" later on in the program.
>>
>
> good try thanks, but no go. for some reason I just can't get
> ActiveState Perl to look outside of the Perl folder for anything.
> <sigh> if I put the file in there it works fine.
>
> BTW, what does this do exactly?
>
> use Cwd;
> BEGIN{unshift @INC, cwd;}
>
> does it clear the INC list?
No, it adds the current dir to the INC list at the front of the list
(opposite of shift).
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs