For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > October 2004 > Net::POP3 Install









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Net::POP3 Install
daniel kaplan

2004-10-22, 8:56 pm

ok, here we go again....

(realizing i had to have Perl on my machine so I could debug) i downloaded
ActiveState Perl 5.6 and from perldoc.com i do see Net::POP3 under 5.6 dox.

but everytime i type Install Net::POP3, it always says could not locate PPD.
i eventually did an install on DBI, knowing it came with Perl...and it said,
already installed....just wanted to check that i was on the syntax...

did some searching looking for Net::POP3 repositories, but can't seem to get
the hang....

anyone familiar with ActiveState Perl and repositories? truth is I need
more than one module installed....

thanks ahead


Sherm Pendley

2004-10-22, 8:56 pm

daniel kaplan wrote:

> (realizing i had to have Perl on my machine so I could debug) i downloaded
> ActiveState Perl 5.6


Why such an old version?

> and from perldoc.com i do see Net::POP3 under 5.6 dox.


We must be looking at different internets. The perldoc.com on *my*
internet has a search box on the front page, and entering "Net::POP3"
into that box gives me the following link:

<http://www.perldoc.com/perl5.6.1/lib/Net/POP3.html>

ActiveState's installer should also have installed the Perl docs on your
start menu - although I'm not certain precisely where. It's been a long
time since I've been forced to use Windows.

Another option is to open up a terminal prompt (or DOS box, command
prompt, or whatever Bill tells you to call it today) and enter 'perldoc
Net::POP3'.

> but everytime i type Install Net::POP3, it always says could not locate PPD.


Of course. Net::POP3 is a core module, so there's no separate PPD to
install it from.

I can hear the pending complaint already... "but how was I supposed to
know it's a core module?" The answer to that is - you're not expected to
know that. You're expected to be able to look it up, in "perldoc
perlmodlib" or <http://www.perldoc.com/perl5.6.1/lib.html>.

Note that the perldoc command always returns the documentation that's
appropriate for the version of Perl you have on your system, whereas the
link to perldoc.com is specific to Perl 5.6.1, and should be altered
accordingly for different Perl versions.

> did some searching looking for Net::POP3 repositories


What is *that* supposed to mean? This ain't C - you don't have to go
searching high and low for libraries. If you want PPDs for ActiveState's
Perl distribution, you get them from ActiveState, and you go to
activestate.com to see what packages they make available that way.

If you want source tarballs that work with generic Perl, go to cpan.org.

> anyone familiar with ActiveState Perl and repositories?


ActiveState has extensive documentation regarding the specifics of their
distribution on their site.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Sisyphus

2004-10-22, 8:56 pm

daniel kaplan wrote:
> ok, here we go again....
>
> (realizing i had to have Perl on my machine so I could debug) i downloaded
> ActiveState Perl 5.6 and from perldoc.com i do see Net::POP3 under 5.6 dox.
>
> but everytime i type Install Net::POP3, it always says could not locate PPD.
> i eventually did an install on DBI, knowing it came with Perl...and it said,
> already installed....just wanted to check that i was on the syntax...
>
> did some searching looking for Net::POP3 repositories, but can't seem to get
> the hang....
>
> anyone familiar with ActiveState Perl and repositories? truth is I need
> more than one module installed....
>


What build of AS perl ? Both my build 638 and 810 already have Net::POP3
and I *think* they were there already (which would be why AS don't
provide a ppm package for that module).

Otherwise run 'ppm set' to check that the AS repository is one of the
locations being searched.

Cheers,
Rob

--
To reply by email u have to take out the u in kalinaubears.

Matt Garrish

2004-10-23, 3:56 am


"daniel kaplan" <nospam@nospam.com> wrote in message
news:1098488248.537389@nntp.acecape.com...
>
> anyone familiar with ActiveState Perl and repositories? truth is I need
> more than one module installed....
>


Your question about POP3 has already been answered, but I would also stress
that you should read the documentation before posting:

For 5.6:

http://aspn.activestate.com/ASPN/do...ePerl-faq2.html

For 5.8:

http://aspn.activestate.com/ASPN/do...ePerl-faq2.html

In particular, I would recommend adding the University of Winnipeg and Jan
Krynicky's repositories on Windows boxes. And every once in a blue moon Dave
Roth's is useful, so no harm in adding it as well.

Matt


daniel kaplan

2004-10-23, 3:56 am

just quickly, if it returns to me that DBI is already installed when i say
add DBI, shouldnt it do the same for Net::POP3???


Sherm Pendley

2004-10-23, 8:56 am

daniel kaplan wrote:

> just quickly, if it returns to me that DBI is already installed when i say
> add DBI, shouldnt it do the same for Net::POP3???


Not necessarily. Net::POP3 is a core module, but DBI is not. So even
though the DBI PPD happens to be bundled with the ActiveState installer,
it's still a separate PPD. Net::POP3 is core, so there's no separate PPD
to report as being installed.

Normally, you'd use a Perl one-liner to determine if you have a module:

perl -MModule::Name -e1

This and many other methods, are thoroughly documented in the Perl FAQ.
The FAQ is searchable, so the "perldoc" tool can help you:

perldoc -q "which modules are installed"

Although I'll freely admit that figuring out which magic words you need
to use to find a given question can be tough... For that reason (and
many others), it's a good idea to review the full FAQ. Don't bother
trying to memorize it, just get a general idea of what questions are in
it. You can always look up the answers when you need them.

perldoc perlfaq

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
daniel kaplan

2004-10-23, 3:56 pm


mind helping me out a little more?

> perldoc -q "which modules are installed"
> Although I'll freely admit that figuring out which magic words you need
> to use to find a given question can be tough... For that reason (and


you said it! on "installed" alone it has nothing

> perl -MModule::Name -e1


not sure of the syntax here, and have tried multiple variations....

cant even seem to get help on e1!

thanks ahead


Sherm Pendley

2004-10-23, 3:56 pm

daniel kaplan wrote:

>
>
> not sure of the syntax here, and have tried multiple variations....


Have a look at "perldoc perlrun" for all of the available switches.

Briefly, -M is used to load a module - as used above, it corresponds to
"use Module::Name;" in code. Obviously you'll want to use the name of
the module you're checking for instead of Module::Name.

The -e is used to pass Perl code to evaluate. "1" is a *very* short Perl
program that does nothing but return 1.

Basically, if you have the module nothing obvious will happen with the
above. It will load the module and then exit. But if you *don't* have
the module, it will bail out with an error.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Matt Garrish

2004-10-23, 3:56 pm


"daniel kaplan" <nospam@nospam.com> wrote in message
news:1098540477.73998@nntp.acecape.com...
>
> not sure of the syntax here, and have tried multiple variations....
>
> cant even seem to get help on e1!
>


If you keep expecting to get spoon-fed answers, you're going to find that
fewer and fewer people respond. What's so hard to figure out here? -e is
obviously a command line switch (unless you'd care to explain what you think
it is?), so go to the documentation on running perl from the command line
(i.e., perlrun!!!). And 1 is the simplest program you can write if all you
want to check is whether the module can be loaded. Voila!

Matt


Matt Garrish

2004-10-23, 3:56 pm


"daniel kaplan" <nospam@nospam.com> wrote in message
news:1098540477.73998@nntp.acecape.com...

[proper attribution missing]

>
> not sure of the syntax here, and have tried multiple variations....
>
> cant even seem to get help on e1!
>


[repeat of my previous post, just adding back in the important line of code
above I accidentally cut out]

If you keep expecting to get spoon-fed answers, you're going to find that
fewer and fewer people respond. What's so hard to figure out here? -e is
obviously a command line switch (unless you'd care to explain what you think
it is?), so go to the documentation on running perl from the command line
(i.e., perlrun!!!). And 1 is the simplest program you can write if all you
want to check is whether the module can be loaded. Voila!

Matt


daniel kaplan

2004-10-23, 3:56 pm

>> perl -MModule::Name -e1
>
> not sure of the syntax here, and have tried multiple variations....
>
> cant even seem to get help on e1!
>


>fewer and fewer people respond. What's so hard to figure out here? -e is
>obviously a command line switch (unless you'd care to explain what you

think
>it is?), so go to the documentation on running perl from the command line
>(i.e., perlrun!!!). And 1 is the simplest program you can write if all you
>want to check is whether the module can be loaded. Voila!


Matt,

yeah, i know that it's command line swicth...as i explained in my post, not
only could i not figure out the syntax of

perl -MModule::Name -e1

but in the -q mode, couldnt find the right combo of words...and i wasn't
sure if MModule::Name was the comand itslef, or the syntax, and no combo i
entered seemed to work.


A. Sinan Unur

2004-10-23, 3:56 pm

"daniel kaplan" <nospam@nospam.com> wrote in
news:1098546332.441351@nntp.acecape.com:

>

....
[color=darkred]
> yeah, i know that it's command line swicth


perl -h

Sinan

daniel kaplan

2004-10-23, 3:56 pm

simple update, finnaly got the syntax right....but every other command
windows says perl generated an error....and it terminates it....now could my
install of perl, could be my windows machine, could be a lot of things...

using activestate....are all builds equal? if not, anyone know of another
one they would recommend?


Jürgen Exner

2004-10-23, 3:56 pm

daniel kaplan wrote:

You know, this is getting old fast

> simple update, finnaly got the syntax right....but every other command
> windows says perl generated an error..


If you want help then
- provide the exact error message
- provide the actual code
- provide that actual command you used to run the script
....., oh, what the heck, just read _and_follow_ the posting guidelines.

> ..and it terminates it....now


Who terminates whom? What do you mean by 'terminate'. Be precise in what you
are saying. We have no way of knowing what you were thinking when you wrote
this unless you tell us.

> could my install of perl, could be my windows machine, could be a lot
> of things...


Yeah, an with a vague description like above there is no way of even
guessing what is wrong.
"every other" makes me believe that probably you got a virus that runs a
hidden counter for your commands and whenever the counter is even it
executes some secret piece of code that kills your program.

jue


daniel kaplan

2004-10-23, 8:55 pm

> Who terminates whom? What do you mean by 'terminate'. Be precise in what
you
> are saying. We have no way of knowing what you were thinking when you

wrote
> this unless you tell us.


ok, first off, enough....if you want to reply and inset a snap at the same
time, save us both the headache. if no one answer, then fine as well....

this is a WINDOWS type crash...it's the same one i get when some thing goes
wrong with AIM, with OE, etc. <program> has generated errors and is being
shut down. <sorry, can't think of the actuall text>

what i said was i will REINSTALL perl. so at the same time wanted
recommendations, "does anyone prefer other versions?" other builds?
etc....

thanks ahead


daniel kaplan

2004-10-23, 8:55 pm

a quick re-reply here since the errror just came back. it's a doc watson
error window. have to go track down the log, and
Application exception occurred:

App: (pid=31536)
When: 10/23/2004 @ 17:16:47.001
Exception number: c0000005 (access violation)

31536 perl.exe
and it is the "dreaded" Exception number: c0000005 (access violation)

so definitly about to uninstall then reinstall perl...

but seriously, i believe it's my system, as i have been getting these alitte
more frequently with AIM and OE


L D Jones

2004-10-25, 8:56 pm

daniel kaplan wrote:

> simple update, finnaly got the syntax right....but every other command
> windows says perl generated an error....and it terminates it....now could my
> install of perl, could be my windows machine, could be a lot of things...
>
> using activestate....are all builds equal? if not, anyone know of another
> one they would recommend?
>


5.8.4.810. should take minutes to install and you'll also have perldoc
and the faq all in one place
daniel kaplan

2004-10-25, 8:56 pm

>>5.8.4.810. should take minutes to install and you'll also have perldoc[color=darkred]

actually, i have 5.6.1 installed....someone here, can't recall who, said it
woud be a wise choice to have the same version as the one which currently
resides on my actual server (shared unix)...which makes sense to me

as for the crash itself, which people are responding to in this thread:
[color=darkred]

i made sure to do a full uninstall, a defrag, a reboot and a reinstall, and
the problem went away.....


Anno Siegel

2004-10-29, 8:56 am

daniel kaplan <nospam@nospam.com> wrote in comp.lang.perl.misc:

No attribution (again). This was in reply to Jürgen Exner.

> you
> wrote
>
> ok, first off, enough....if you want to reply and inset a snap at the same
> time, save us both the headache. if no one answer, then fine as well....


No Sir. You don't get to say what kind of replies you prefer. As
long as you keep wasting everybody's time with badly posed and inane
questions, you're going to be criticized for it. By the few that still
read your stuff, that is...

Anno
daniel kaplan

2004-10-29, 3:57 pm

"Anno Siegel" <anno4000@lublin.zrz.tu-berlin.de> wrote in message
news:cltct8$c1i$3@mamenchi.zrz.TU-Berlin.DE...

> No Sir. You don't get to say what kind of replies you prefer. As
> long as you keep wasting everybody's time with badly posed and inane
> questions, you're going to be criticized for it. By the few that still
> read your stuff, that is...
>

before you asnwer back with this, and with that, you should check the end
result of the thread....if you had you would that not only did i correct the
situation, but exactly what i did, in case it happens to someone else.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com