From: Bart the bear on
I have to untangle somebody else's code and I ran accross the pragma
"use library".
I cannot find in the "Programming Perl" or anywhere else. Can somebody
tell me what
that pragma does or where to find the description?
TIA

From: A. Sinan Unur on
"Bart the bear" <bartthebear(a)gmail.com> wrote in
news:1139585729.767825.90970(a)f14g2000cwb.googlegroups.com:

> I have to untangle somebody else's code and I ran accross the pragma
> "use library". I cannot find in the "Programming Perl" or anywhere else.
> Can somebody tell me what that pragma does or where to find the
> description?

There are two possibilities:

(1) Someone was being cute, and they named their module library.pm

(2) Or, your post is inaccurate, and the statement is actually:

use lib '/some/path';

If it is (1), find the module library.pm that is being used. If it is (2),
then read

perldoc lib

Sinan
From: J. Gleixner on
Bart the bear wrote:
> I have to untangle somebody else's code and I ran accross the pragma
> "use library".
> I cannot find in the "Programming Perl" or anywhere else. Can somebody
> tell me what
> that pragma does or where to find the description?

ahhhh.. is there a library.pm in @INC?
From: Bart the bear on

A. Sinan Unur wrote:
> "Bart the bear" <bartthebear(a)gmail.com> wrote in
> news:1139585729.767825.90970(a)f14g2000cwb.googlegroups.com:
>
> > I have to untangle somebody else's code and I ran accross the pragma
> > "use library". I cannot find in the "Programming Perl" or anywhere else.
> > Can somebody tell me what that pragma does or where to find the
> > description?
>
> There are two possibilities:
>
> (1) Someone was being cute, and they named their module library.pm
>
> (2) Or, your post is inaccurate, and the statement is actually:
>
> use lib '/some/path';
>
> If it is (1), find the module library.pm that is being used. If it is (2),
> then read
>
> perldoc lib
>
> Sinan

My post was inaccurate. It was the use lib 'var'. You solved my
problem.
Thanks!

From: Tad McClellan on
Bart the bear <bartthebear(a)gmail.com> wrote:

> I have to untangle somebody else's code and I ran accross the pragma
> "use library".
> I cannot find in the "Programming Perl" or anywhere else. Can somebody
> tell me what
> that pragma does or where to find the description?


perldoc library


should work if whoever wrote library.pm actully made some
documentation for their module.


--
Tad McClellan SGML consulting
tadmc(a)augustmail.com Perl programming
Fort Worth, Texas