Date: 2008-01-02 11:18 am (UTC)
I do it by reordering the @INC array:

BEGIN {unshift @INC, "/directory/where/you/put/it"}

The unshift puts the new directory at the beginning of the list, so it'll find that one first.

Alternatively, you can invoke perl with the -I option, which adds to the beginning of @INC.

Or you can use lib like you are doing, which also adds the path to the start of the list. This is normally the best way if you just have a simple directory path to add.

So, why doesn't it work for you? Are you sure you are specifying the directory containing the XML directory, not the XML directory itself? It adds XML/Parser.pm to each directory in the path.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

undyingking: (Default)
undyingking

March 2012

S M T W T F S
     123
4 5678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 30th, 2025 11:45 am
Powered by Dreamwidth Studios