in reply to Re: perl modules
in thread perl modules

The path to the library where the module is:

/home/DEV/user/mrm/lib

The script:

#!/usr/bin/perl use Modern::Perl; use lib "/home/DEV/user/mrm/lib"; use MRM::Utils; print MRM::Utils::now() . "\n\n";
--------------------------------------------------

Can't locate MRM/Utils.pm in @INC (@INC contains: /home/DEV/user/mrm/lib...BEGIN failed--compilation aborted at line 6

I'm desperate :(

If I use: use lib "/mrm/lib"; I get errors again:(

Replies are listed 'Best First'.
Re^3: perl modules
by tobyink (Canon) on Sep 03, 2013 at 08:58 UTC

    Perl will be expecting the file to be called /home/DEV/user/mrm/lib/MRM/Utils.pm (and on most non-Windows filesystems, this is case-sensitive).

    If you're sure a file of that name exists, check its permissions, and the permissions of its parent and ancestor directories.

    use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
      permissions are ok, still no luck ...
        Permissions on what are ok? Type  ls -loanh full/path/to/your/pm.pm and post the output for us to examine