I am attempting to use a module I downloaded from CPAN. I am on a unix system where I dont have root permissions. So the CPAN module will have to go in my home directory.

I untarred the CPAN module here:
/users/<myusername>/perl/Tk-DKW-0.03

I ran the make file. It put the module files at:
Tk-DKW-0.03/blib/lib/Tk

I went to the example directory:
Tk-DKW-0.03/examples

Then I edited one of the examples and put a use statement at the top:
#! /usr/bin/perl use lib "/users/<myusername>/perl/Tk-DKW-0.03/blib/Tk"; use Tk::Menustrip;
I then get this error:
(attocs951:examples)#482 ./menustrip.pl Can't locate Tk/Menustrip.pm in @INC (@INC contains: "/users/<myuserna +me>/perl/Tk-DKW-0.03/blib/lib/Tk /usr/lib64/perl5/5.8.5/x86_64-linux- +thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x8 +6_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux +-thread-multi . . . . .

If I do a ls of the directory I see the modules:
ls /users/<myusername>/perl/Tk-DKW-0.03/blib/lib/Tk total 208K 4.0K CheckBox.pm* 12K Menustrip.pm* 4.0K ChildNotification.pm* 4.0K ProgressIndicator.pm* 60K Columns.pm* 4.0K Signals.pm* 12K ComboEntry.pm* 16K SplitFrame.pm* 8.0K CornerBox.pm* 8.0K TabbedForm.pm* 20K DockFrame.pm 16K TabFrame.pm* 28K IconCanvas.pm* 12K TableEdit.pm*

I dont understand what I am doing wrong.

In reply to Problem understanding how to use modules by texan4ever

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.