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

Re: perl -M using a module in current dir

by broquaint (Abbot)
on Sep 23, 2004 at 11:19 UTC ( #393169=note: print w/ replies, xml ) Need Help??


in reply to perl -M using a module in current dir

You'll need to put Bar.pm in the Foo/ directory in the current directory if you wish to use the -M switch or use e.g

shell> mkdir Foo shell> mv Bar.pm Foo/ shell> perl -I. -MFoo::Bar -e 'print barfoo("blah");'
The -I. forces the current directory to be searched first.
HTH

_________
broquaint


Comment on Re: perl -M using a module in current dir
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2015-07-29 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls