Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Perl module in a user local folder

by niqola (Novice)
on Jan 15, 2013 at 04:13 UTC ( [id://1013308]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #file UTest.pm
    package UTest;
    ...
    }
    # other sub ...
    1;
    
  2. or download this
    #file Service.pm
    package Service;
    ...
    }
    #others sub...
    1;
    
  3. or download this
    #file test.pl
    use Lib::Service;
    
    my $service = Service->new;
    #... other codes
    
  4. or download this
    Can't locate UTest.pm in @INC (@INC contains: /etc/perl /usr/local/lib
    +/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/p
    +erl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl
    + .) at Lib/Service.pm line 2.
    BEGIN failed--compilation aborted at Lib/Service.pm line 2.
    Compilation failed in require at ./mytest.pl line 2.
    BEGIN failed--compilation aborted at ./mytest.pl line 2.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1013308]
Approved by Athanasius
Front-paged by 2teez
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found