473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

clarifying facts on cpan modules

170 100+
hi guys,

just wanted to find out something about cpan modules 'cos i'm still not sure what they are all about

right...hm..first of all
i did something like typing ppm on the command prompt

and a ppm GUI opens up and i see a chunk of modules
so does it mean the modules that are seen are already installed?
Mar 18 '08 #1
13 3070
numberwhun
3,509 Expert Mod 2GB
hi guys,

just wanted to find out something about cpan modules 'cos i'm still not sure what they are all about

right...hm..first of all
i did something like typing ppm on the command prompt

and a ppm GUI opens up and i see a chunk of modules
so does it mean the modules that are seen are already installed?

No, ppm is Active State's "perl package manager". It is how you install modules on your system. The modules that are already installed will be designated there by being different from the rest (sorry, I don't use Active State so I can't tell you how).

One bit of advice though. Active State is limiting in the modules it has ported over from CPAN and not only that, it can be difficult to find the module(s) you are looking for. My recomendation is that you look at Strawberry Perl instead. It is the other WIndows version of Perl and in my opinion, MUCH better. You install modules using the CPAN interface, like the rest of the Unix based Perl community, instead of the proprietary PPM POS that Active State uses (yes, the POS part is my personal opinion).

Anywho, for information on installing modules, you will want to read this . It will get you on your way.

As for what modules are, they are bits of reusable code. If you want to do something in Perl, anything, check for a module first. If there isn't one, you may have an idea for one.

Regards,

Jeff
Mar 18 '08 #2
poolboi
170 100+
yeah indeed
activeperl is rather complex when installing its module
u have to download the tgarz file i think
then type some commands in the command prompt, and have to test it out to make sure it's completely installed

so if i've type programs using activeperl
is it going to work if i use what u call strawberry perl?
Mar 18 '08 #3
KevinADC
4,059 Expert 2GB
active perl is very easy to install modules:

c:\>ppm

then once ppm starts:

install modulename

the problem though is as Jeff said, there are less modules available in PPM repositories than there are on CPAN.

Besides that, activeperl comes with lots of extras that strawberry perl does not, like many Win32 modules, wperl, Tk and now Tkx with perl 5.10. ActivePerl comes with very easy to read documentation and it's easy to see all the installed modules in the activeperl documentation folder. Activeperl has a support forum, strawberry perl has no support of any kind.

Strawberry perl comes with an html port of the standard perl documentation but it is not well laid out, and in fact was unreadable on my Windows computer because it is so freaking long.

Strawberryperl and activeperl both performed the same as far as I could tell.
Mar 18 '08 #4
KevinADC
4,059 Expert 2GB
hi guys,

just wanted to find out something about cpan modules 'cos i'm still not sure what they are all about

right...hm..first of all
i did something like typing ppm on the command prompt

and a ppm GUI opens up and i see a chunk of modules
so does it mean the modules that are seen are already installed?
Modules extend the functionality of perl. They are basically mini programs (some not so mini) that you can reuse by learning the interface of the module. Some modules perform one or two functions, some perform dozens of functions/methods. Not all modules are created equal. This is one thing I do not care for about CPAN, anyone can register and upload a module, there is really no standard or quality control testing. CPAN is full of modules that are poorly documented, do not work, are sorely out of date, buggy and possibly even insecure. You should always check bug reports and tests performed by other CPAN members before using an unknown module. Do not blindly think because there is a module on CPAN it has passed some sort of test to issure it works or is suited for any particular task.
Mar 18 '08 #5
poolboi
170 100+
hm..okok thanks for the helpful information
so i guess modules that are not found in ppm have to downloaded from cpan and installed yeah?
Mar 18 '08 #6
poolboi
170 100+
hm..ok tried install the module SpreadSheet::WrteExcel

using nmake makefile
then i type nmake makefile install

but end of the day i got this error :

'pls2bat.bat' is not recognise as an internal or external command, operable command or batch file
'NMAKE: fatal error U1077: 'c:\WINDOWS\system32\cmd.exe': return code'0x1'
Stop.

what does this mean?
Mar 18 '08 #7
poolboi
170 100+
alright the need to elaborate
the above comment is when i use nmake to instlal i got the error

but using ppm...
they can't connect to the repository package list and say timeout error
so i've tried this a lot of times and still dun work
wonder why
Mar 19 '08 #8
poolboi
170 100+
anyone pls help?
is it cos i'm behind a firewall or something of that sort?
Mar 20 '08 #9
KevinADC
4,059 Expert 2GB
anyone pls help?
is it cos i'm behind a firewall or something of that sort?
Maybe, turn off the firewall and try again. If you can't turn off the firewall ask tech support to allow PPM internet access.
Mar 20 '08 #10
poolboi
170 100+
hm...i dunno if it's the version problem
i'm using perl 5.10
and i've done a lot of searching it seem there seems to be some repository problem with version 5.10 but not 5.8
so i dunno if this could be the problem as well anot
Mar 20 '08 #11
nithinpes
410 Expert 256MB
hm...i dunno if it's the version problem
i'm using perl 5.10
and i've done a lot of searching it seem there seems to be some repository problem with version 5.10 but not 5.8
so i dunno if this could be the problem as well anot
If your IE is configured to use proxy server, try ppm after adding the following three environment variables under system variables(System Properties>Advanced tab>Environment variables).

name: http_proxy
value: your proxy server(e.g http://internet:8085)

name: http_proxy_user
value: your username(Windows login)

name: http_proxy_pass
value: user password
Mar 20 '08 #12
poolboi
170 100+
thanks for the help
i'm indeed behind a proxy, guess that's why i can't download all the packages from the repository
i will try that when i can..cos this is the company's network stuff
i can't change it any oh how
right i will keep this thread in mind ..once i can start to download then i'll see if it works
Mar 24 '08 #13
poolboi
170 100+
alright i've got it connected
it's done..the proxy firewall was indeed blocking my connection
hm..i realise something
spreadsheet::writeExcel module doesn't seem to be in the list, is it cos i'm using perl version 5.10?
Mar 24 '08 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: p cooper | last post by:
router root # perl -MCPAN -e 'install Net::SMTP' CPAN: Storable loaded ok LWP not available CPAN: Net::FTP loaded ok Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz...
1
by: Ville Walveranta | last post by:
I'm trying to get CPAN or, preferably CPANPLUS working on a dual-CPU FreeBSD 4.8 server (with plenty of free memory), and have ran into a problem that I don't appear to resolve. Either of the...
0
by: Alex Lyman | last post by:
I've been using ActiveState's PPM3 to install most of my modules, but I've found it doesn't have many very useful modules. This was mostly forced, since I could never get the CPAN module to...
2
by: Freedolen | last post by:
Hi, I am trying to install CPAN modules in Windows 2000, but i am getting error as "Can't locate object method "make" via package "PACK001" at C:/Perl/lib/ExtUtils/MM_Win32.pm line 131." I...
7
by: chandru1782 | last post by:
Dear friends, I am trying to use CPAN for installing some perl modules. i am using a ubuntu system, which has internet connection through lan and authenticated proxy. when trying to install...
1
numberwhun
by: numberwhun | last post by:
Ok, I have an issue and I am not sure what is causing it. I am working on a Fedora Core 7 Linux machine (my laptop). I have not had any problems with installing modules via CPAN. All has...
4
by: rahatekarabhijeet | last post by:
Hi, I have seen that some modules which are available on CPAN are not listed in ActiveState repository. So those are not available to install by using ppm. I find out the way of adding adding...
1
by: spatro | last post by:
Hi, I am trying to install DBD::mysql using the CPAN and I am facing the following error: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Warning:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.