Trouble with @INC

ls_toronto wrote on Wed Jan  3 17:30:53 CET 2007:

This is a very simple question.

I have the following line in a script:

use Mail::Box::Manager;

I get the error in the Eclipse console:

Can't locate Mail/ in @INC (@INC contains: C:/Perl/lib/Mail/Message/Field
C:/Perl/site/lib C:/Perl/lib .) in C:/Perl/lib/Mail/Message/ line

It looks like it is finding the ok but not looking in the wrong
location for This is strange to me because I added the location
of this file to the @INC (C:/Perl/lib/Mail/Message/Field).

From the PDF I am not sure how to modify the Perl Include Path.

Can anyone over there advise?


jploski wrote on Wed Jan  3 17:41:50 CET 2007:
To modify the include path, right-click on the Perl project and edit its
Properties. After that, choose Project/Clean... from the main menu to revalidate
all scripts in your project.

If the module which can't be found is called Mail::Address, its definition
should be contained in a file /Mail/, and you should
add  to the include path.
ls_toronto wrote on Wed Jan  3 19:28:51 CET 2007:
I think I have set something up wrong.

I downloaded Mail-Box-2.069 and place the Mail folder from Mail-Box-2.069\lib
into the C:\Perl\lib.

What confuses me is /Mail/ does not exist. The path to
is C:/Perl/lib/Mail/Message/Field (which I have added to the @INC as you
described above).

I am not sure why it is looking for /Mail/


jploski wrote on Wed Jan  3 20:20:01 CET 2007:
Mail::Address is in bundle MailTools which you should install as well.

Unless you have a good reason, you should use ActiveState's tool 'ppm' to
install bundles (including their dependencies) instead of downloading them
directly from CPAN.
ls_toronto wrote on Wed Jan  3 20:36:14 CET 2007:
Ah, using the tool did the trick. Thanks :-)

Note: The above is an archived snapshot of a forum thread. Use the original thread at to post comments.