Operating System - Linux
1820336 Members
2822 Online
109623 Solutions
New Discussion юеВ

Re: Term::ANSIScreen Perl module

 
SOLVED
Go to solution
rccmum
Super Advisor

Term::ANSIScreen Perl module

I have Perl v5.8.8 installed on HPUX 11.11
I want to use above perl module in a perl script. When I check the packages installed in the depository using PPM, I see the module description.
ppm> describe Term-ANSIScreen ====================
Name: Term-ANSIScreen
Version: 1.42
Author: (cpan@audreyt.org)
Title: Term-ANSIScreen
Abstract: Terminal control using ANSI escape sequences
Location: ActiveState Package Repository
Available Platforms:
1. IA64.ARCHREV_0-thread-multi-LP64-5.8
2. PA-RISC1.1-thread-multi-5.8
3. PA-RISC2.0-thread-multi-LP64-5.8

But when I use it in the script as
use Term::ANSIScreen;

It gives the error
Can't locate Term/ANSIScreen.pm

I searched the ANSIScreen.pm file and it is not in the distribution.

Do I need to install ANSIScreen.pm separately?

I guess the module is already there inbuilt thats why it is show in PPM?

Can anyone out there comment on this?
8 REPLIES 8
Denver Osborn
Honored Contributor

Re: Term::ANSIScreen Perl module

It sounds like it's not installed... To see if it is installed, I'd use query instead of describe.

ppm> query Term-ANSIScreen

If it isn't installed, you'll see "No matches for...". In that case, use install to install from ppm to install it.

ppm> install Term-ANSIScreen


hope this helps,
-denver

James R. Ferguson
Acclaimed Contributor
Solution

Re: Term::ANSIScreen Perl module

Hi:

This module isn't included in the core distribution.

A simple test of a module's presence is to do:

# perl -MTerm::ANSIScreen -e 1

If installed, nothing will be returned. If not installed, an error beginning with "Can't locate" will be seen.

Regards!

...JRF...
rccmum
Super Advisor

Re: Term::ANSIScreen Perl module

The "describe of the package" worked because the package was present in the repository. I just ran ppm>install Term-ANSIScreen. It downloaded and installed ANSIScreen.pm from ActiveState Package Repository.

Thanks to both of you.
rccmum
Super Advisor

Re: Term::ANSIScreen Perl module

Oops!!!

Sorry Denver, 5 points to your reply by my mistake. I wanted to give full marks.
Ralph Grothe
Honored Contributor

Re: Term::ANSIScreen Perl module

ppm?
Thought that was a MakeMaker kludge for Windows hosts?
The test James showed should suffice
if the module was installed properly
or you would have to use the -I switch with path that should be unshifted to @INC.
But then you already knew the presence of what you were quereing ;-)
You could also try "perldoc perllocal".
Madness, thy name is system administration
Denver Osborn
Honored Contributor

Re: Term::ANSIScreen Perl module

No prob w/ the points thing. Glad to have helped.

-denver
rccmum
Super Advisor

Re: Term::ANSIScreen Perl module

Thanks to all of you.

Your replies are appreciated.
rccmum
Super Advisor

Re: Term::ANSIScreen Perl module

The module isn't part of perl distribution. It needs to be downloaded and installed from the AS repository.