1834178 Members
2386 Online
110064 Solutions
New Discussion

Perl Problems

 
SOLVED
Go to solution
Ricardo Bassoi
Regular Advisor

Perl Problems

Hello !
I??m a novice at Perl script. I just installed the Perl v5 at a HP-UX 11.0 workstation.
I cannot use the shell.pm, when I used the shell script and put:
use shell;
When I execute I receive a message that an Error hapens when I was trying to use the shell.pm.
Somebody can help ?

If you never try, never will work
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: Perl Problems

Hi Ricardo:

I know a teeny-tiny bit about Perl and I think all you need to do is change
use shell;
to
use Shell;

Regards, Clay
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: Perl Problems

Did you receive an error message like this:

Can't locate shell.pm in @INC


If not, what was the exact error message??

live free or die
harry
Live Free or Die
Ricardo Bassoi
Regular Advisor

Re: Perl Problems

Hi Harry

I received the message:

Can't locate shell.pm in @INC (@INC contains: /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl .) at ./ola line 2.
BEGIN failed--compilation aborted at ./ola line 2.

Tks.

The script is in the attachment
If you never try, never will work
harry d brown jr
Honored Contributor
Solution

Re: Perl Problems


I forgot to add, that you need to capitalize it!

use Shell;


live free or die
harry
Live Free or Die