in reply to beginner - can't load a module

As mentioned before, qw( ) will give you three directories, because it splits on space.

Perl was created on Unix-like systems, so to make your life easier on windows:

So summarizing: work in 'c:\bioperl' (or similar), put your libraries in, say, 'c:\bioperl\modules', and add the lib-line to your programs:

use lib 'c:/bioperl/modules';
Alternatively, add the directory to your PERL5LIB environment-variable.

Replies are listed 'Best First'.
Re^2: beginner - can't load a module
by JavaFan (Canon) on Oct 17, 2010 at 03:18 UTC
    keep in mind that the backslash '\' works as an escape character to get special characters (like tabs, newlines) and to get a real backslash, you have to use a double backslash. This will make your paths look weird ('c:\\bioperl\\project').
    You do not seem to understand the difference between single and double quoted. What you said is true for double quoted strings, but even in your example you use a single quoted string. No need to escape the backslash there - it would only need to be escaped if it's at the end of the string, or if followed by a backslash. None of that is happening in the OPs path.