How do I add a directory to my include path (@INC) at runtime?
来源:互联网 发布:linux rm rf 恢复 编辑:程序博客网 时间:2024/05/11 12:34
How do I add a directory to my include path (@INC) at runtime?
Here are the suggested ways of modifying your include path, including environment variables, run-time switches, and in-code statements:
- the PERLLIB environment variable
$ export PERLLIB=/path/to/my/dir$ perl program.pl
- the PERL5LIB environment variable
$ export PERL5LIB=/path/to/my/dir$ perl program.pl
- the perl -Idir command line flag
$ perl -I/path/to/my/dir program.pl
- the use lib pragma:
use lib "$ENV{HOME}/myown_perllib";
The last is particularly useful because it knows about machine dependent architectures. The lib.pm pragmatic module was first included with the 5.002 release of Perl.
- How do I add a directory to my include path (@INC) at runtime?
- How can I add properties to an object at runtime?
- How do I add a ProgressBar to a .NET StatusBar
- How do I make games? A Path to Game Development
- How do I make games? A Path to Game Development
- How do I make games? A Path to Game Development
- How do I add capabilities to my executable in qt for symbian?
- How do I add a component
- How do I add a tool tip to a span element?
- How do I download or save a YouTube video to my computer?
- How do I get my program to act like a daemon?
- How do I add a library project to the Android Studio?
- How to add a path to matlab search path permanently
- How do I create a log file of my installation?
- How do I add an integer value with javascript (jquery) to a value that's returning a string?
- How to add a runtime in private Cloud Foundry
- How do I autosize a button to fit its text
- [SVN]-How do I relocate a repository to another host?
- .Net线程问题解答
- IE和Firefox下event乱谈
- 报表服务 在客户端提交参数
- 了解JavaScript类
- 事务在.net中的应用
- How do I add a directory to my include path (@INC) at runtime?
- 移动终端GPS与A-GPS的开发
- 提供一个.net下通用的Cookie操作类
- 更改oracle的端口号
- memset,memcpy,strcpy 的区别
- Perl Notes(II)
- 多用户系统如何绑定国际域名
- VMware 6 Linux 版本下载安装配置编译序列号注册码
- 悟透JavaScript