in reply to Re: try to understand use lib in module
in thread try to understand use lib in module
Does work. but this is confusing. Someone at work wrote a script withuse lib '/n2p/cf/lib'; use Logger;
does this mean, since somefile.pl is not a module, and script, this can be used as script inside of file1.pl.. and not necessarily loaded somefile.pl as module?#!/usr/bin/perl -w # file1.pl use lib '/somewhere/'; require 'somefile.pl';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: try to understand use lib in module
by runrig (Abbot) on Jul 07, 2007 at 22:53 UTC |