Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl -P option

Status
Not open for further replies.

mark1110

Programmer
Apr 20, 2005
85
US
Hi,

I have perl scripts that are coming from hp unix and being moved to aix unix. On each perl script I have
#!/usr/bin/perl -P. When I run this I get an error cc_r is not found in cppstdin file. However when I take out the -P that error message disappears and is replaced by

Can't locate logit.pl in @INC (@INC contains: /usr/opt/perl5/lib/5.8.8/aix-thread-multi /usr/opt/perl5/lib/5.8.8 /usr/opt/perl5/lib/site_perl/5.8.8/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.8.8 /usr/opt/perl5/lib/site_perl . /sysadmin/collector/src/module/lib/site_perl/5.8.0/aix-thread-multi/) at /broker/user/bin/testing.pl line 17.


I am a little confused. What do I need to do to not get these error messages.
 
-P seems to be an old option from perl 4 -

Code:
-P
    causes your script to be run through the C preprocessor before compilation by perl. (Since both comments and cpp directives begin with the # character, you should avoid starting comments with any words recognized by the C preprocessor such as "if", "else" or "define".)
I would just remove it. The second error is due to a missing script, 'logit.pl' It can go in any of the directories listed, including the same directory as the script you're trying to execute. (choose the latter)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top