in reply to perl unable to locate my module

Just a shot in the dark:

What are the rights of the parentdir /home/charrison/bin (owner, group, modes) and whats the group-id of the process?

edit

if for instance the execute-mode is missing for a directory, then you can't access the included files.

lanx@nc10-ubuntu:/tmp$ echo 1 > dir/tst.pm lanx@nc10-ubuntu:/tmp$ chmod u-x dir lanx@nc10-ubuntu:/tmp$ ll -d dir drw-r-xr-x 2 lanx lanx 4096 2013-05-22 00:28 dir lanx@nc10-ubuntu:/tmp$ perl -Idir -Mtst -e'1' Can't locate tst.pm in @INC (@INC contains: dir /etc/perl /usr/local/l +ib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share +/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_pe +rl .). BEGIN failed--compilation aborted.
but
lanx@nc10-ubuntu:/tmp$ chmod u+x dir lanx@nc10-ubuntu:/tmp$ perl -Idir -Mtst -e'1'

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^2: perl unable to locate my module
by ibm1620 (Hermit) on May 21, 2013 at 23:20 UTC
    Perms for the parent dir (/home/charrison/bin) are 775, so that should be good. The user/group is charrison/charrison.
      Well, it also fails if earlier dirs in the path have no x mode.

      But if /home/charrison/bin is correct this isn't a likely reason...

      Cheers Rolf

      ( addicted to the Perl Programming Language)

        Also, require '/home/charrison/bin/IPC.pm'; succeeds, which indicates to me it probably isn't related to permissions....