Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: perl modules

by Happy-the-monk (Monsignor)
on Sep 03, 2013 at 08:42 UTC ( #1052039=note: print w/ replies, xml ) Need Help??


in reply to perl modules

I tried to make it work by using use lib "dir";

You will also have to use your own module:

use Somemodule;

Cheers, Sören

Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)


Comment on Re: perl modules
Download Code
Re^2: perl modules
by anek77713 (Acolyte) on Sep 03, 2013 at 08:55 UTC

    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:(

      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 ...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052039]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-07-29 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls