Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: To "use" expected version of .pm file

by Rijwan (Novice)
on Nov 27, 2008 at 10:36 UTC ( [id://726362]=note: print w/replies, xml ) Need Help??


in reply to Re: To "use" expected version of .pm file
in thread To "use" expected version of .pm file

i have written following line - use lib "lib path"; but it gives error "unable to find lib.pm" There is no lib.pm file as such. few lines of code are - use strict; use Getopt::Std;

Replies are listed 'Best First'.
Re^3: To "use" expected version of .pm file
by ww (Archbishop) on Nov 27, 2008 at 11:33 UTC
    try
    perldoc -q path
Re^3: To "use" expected version of .pm file
by Anonymous Monk on Nov 27, 2008 at 23:02 UTC
    Sounds like you have a broken install, as lib.pm is standard since version 5.001. What does perl -V report?
Re^3: To "use" expected version of .pm file
by ikegami (Patriarch) on Nov 28, 2008 at 04:31 UTC

    lib is part of Perl, so that's very odd. But you don't have to use lib to modify @INC.

    BEGIN { unshift @INC, '/home/user/perllib'; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-03-28 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found