Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Calling Subroutines From Another File: Path Problem

by Athanasius (Chancellor)
on Jan 08, 2013 at 06:53 UTC ( #1012173=note: print w/replies, xml ) Need Help??


in reply to Calling Subroutines From Another File: Path Problem

Here are some options:

  • Place use lib 'C:DIR1/DIR2/DIR3'; near the beginning of File1.pl

  • Invoke perl with a -I command-line option:

    perl -IC:/DIR1/DIR2/DIR3 File.pl
  • Add C:/DIR1/DIR2/DIR3 to the system environment variable PERL5LIB

See perlrun.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012173]
help
Chatterbox?
[choroba]: Aren't they the standard X colours?
[ambrus]: choroba: that's not clear, since Tk runs on systems that don't even have X.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-10-17 12:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (227 votes). Check out past polls.

    Notices?