CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Changing path of Mail::POP3Client module


Warren Bell

Feb 9, 2000, 1:43 PM

Post #1 of 2 (4854 views)
Changing path of Mail::POP3Client module Can't Post

I've got a spam filter for windows working using the Mail::POP3Client module. When I try to put it in my startup folder so it can run a check at startup it can't find the module located in a directory called Mail right off the directory it's in. Or it's not in my path.

What I want to be able to do is specify the path to the module in a directory that is in my path. How can I do this? Would it be somthing like:

use :Path:To::POP3Client;


Feb 9, 2000, 7:47 PM

Post #2 of 2 (4854 views)
Re: Changing path of Mail::POP3Client module [In reply to] Can't Post


The @INC is the path to your perl Modules.

If you want to change the path for a particular module(s) then do this:

unshift @INC, "C:\\windows\\desktop\\";

That Code will look for the module you want to use on your desktop.

Put this code at the top of your perl script.
This code will tell Perl where to find the module that you want to use.



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives