开发者

How to use a perl module?

I have installed PAR from CPAN. Now, how do you use it? It gives usage example as:

% pp -o hello hello.pl

How do you use this on Windows? pp gives "command not found".

I am new to perl. Only thing I need is to run a开发者_高级运维 module.


pp isn't a module, it is an application. You need to figure out where it was installed to (I don't know which perl you are using or how you installed it) and use the full path to it.


You should look in your lib directory to ensure that the pp.pm file exists somewhere. then, you can load it up by typing use Par::pp; at the perl command line (i'm guessing that it is part of PAR based on what i've found, it could be something as simple as use pp; at the command line).

once the module is loaded, it should provide the pp command for you to use.

thanks, mark

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜