user2799433
user2799433

Reputation: 191

get error when use pp for perl script under Ubuntu

command:

pp -o test -A addlist.txt test1.pl

content in addlist.txt:

lib_3.pm
lib

there are lib_1.pm and lib_2.pm under folder lib test1.pl call functions defined in lib_1.pm and lib_2.pm and lib_3.pm

after I run the command above, I get error:

for packingin/pp: cannot find file or directory lib_3.pm
for packingin/pp: cannot find file or directory lib

Although I get the error, the output file from pp can print correct output. Who can tell me why?

Upvotes: 0

Views: 38

Answers (1)

user2799433
user2799433

Reputation: 191

I get help from githut.

The error is because the end of line of addlist.txt is windows. When I save the addlist.txt as Unix/Linux end of line, the error gong.

Upvotes: 1

Related Questions