[26284] in Perl-Users-Digest
Perl-Users Digest, Issue: 8466 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 28 18:05:29 2005
Date: Wed, 28 Sep 2005 15:05:04 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Wed, 28 Sep 2005 Volume: 10 Number: 8466
Today's topics:
How do I install this package using ppm? <Harry@Steppenwolf.com>
Re: How do I install this package using ppm? <1usa@llenroc.ude.invalid>
Re: How do I install this package using ppm? <Harry@Steppenwolf.com>
Re: PPM not working <Harry@Steppenwolf.com>
Re: Use of hash variables in module call - puzzling beh (Anno Siegel)
Re: Use of hash variables in module call - puzzling beh <news@lawshouse.org>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 28 Sep 2005 18:45:03 GMT
From: Harry Haller <Harry@Steppenwolf.com>
Subject: How do I install this package using ppm?
Message-Id: <a9plj1t9hbijv659op9qgttcq3r6okq2f3@4ax.com>
I searched CPAN and found this:
WWW::Yahoo::Groups
which I want to install. I ran ppm (for ActiveState) and entered:
ppm> install WWW::Yahoo::Groups
ppm says "Searching for 'WWW::Yahoo::Groups' returned no results. Try
a broader search first."
What is going on here? Why can't ppm find it? Is there another way I
can install it? I have the archive downloaded locally. Can I install
from that archive instead?, if so how.
This does not work:
ppm> install D:\_Install\Perl\WWW-Yahoo-Groups-1.91.tar.gz
nor does this show the package I want.
ppm> search yahoo
(apologies for posting this as two separate messages - it should 've
been cross-posted).
------------------------------
Date: Wed, 28 Sep 2005 18:59:10 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: How do I install this package using ppm?
Message-Id: <Xns96DF987306E8Aasu1cornelledu@127.0.0.1>
Harry Haller <Harry@Steppenwolf.com> wrote in news:a9plj1t9hbijv659op9qgttcq3r6okq2f3@4ax.com:
> I searched CPAN and found this:
>
> WWW::Yahoo::Groups
>
> which I want to install. I ran ppm (for ActiveState) and entered:
>
> ppm> install WWW::Yahoo::Groups
>
> ppm says "Searching for 'WWW::Yahoo::Groups' returned no results. Try
> a broader search first."
>
> What is going on here? Why can't ppm find it? Is there another way I
> can install it? I have the archive downloaded locally. Can I install
> from that archive instead?, if so how.
>
> This does not work:
> ppm> install D:\_Install\Perl\WWW-Yahoo-Groups-1.91.tar.gz
You should always read the newsgroup for a while before posting:
<URL: http://groups.google.com/group/comp.lang.perl.misc/browse_thread/thread/b490326c232c3cd5/0c1a6bf808fabf0e>
By the way, please choose a posting address and stick with it.
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: Wed, 28 Sep 2005 21:09:00 GMT
From: Harry Haller <Harry@Steppenwolf.com>
Subject: Re: How do I install this package using ppm?
Message-Id: <tdvlj19ji4odbptdg7lf3dbtcva98k27ev@4ax.com>
On Wed, 28 Sep 2005 18:59:10 GMT, "A. Sinan Unur"
<1usa@llenroc.ude.invalid> wrote:
>Harry Haller <Harry@Steppenwolf.com> wrote in news:a9plj1t9hbijv659op9qgttcq3r6okq2f3@4ax.com:
>
>> I searched CPAN and found this:
>>
>> WWW::Yahoo::Groups
>>
>> which I want to install. I ran ppm (for ActiveState) and entered:
>>
>> ppm> install WWW::Yahoo::Groups
>>
>> ppm says "Searching for 'WWW::Yahoo::Groups' returned no results. Try
>> a broader search first."
>>
>> What is going on here? Why can't ppm find it? Is there another way I
>> can install it? I have the archive downloaded locally. Can I install
>> from that archive instead?, if so how.
>>
>> This does not work:
>> ppm> install D:\_Install\Perl\WWW-Yahoo-Groups-1.91.tar.gz
>
>You should always read the newsgroup for a while before posting:
>
><URL: http://groups.google.com/group/comp.lang.perl.misc/browse_thread/thread/b490326c232c3cd5/0c1a6bf808fabf0e>
>
>By the way, please choose a posting address and stick with it.
>
>Sinan
Manually copying the files didn't work. I copied them to:
C:\Perl\site\lib\WWW
creating the directory stucture as implied by the package.
Do I need to have a ppd file for this module? If so, how can I create
one?
One problem with reading the newgroup is trying to figure out what
query to enter into Google.
I tried adding a repository:
ppm> rep add CPAN http://www.perl.com/cpan
and searching again. Still no luck.
------------------------------
Date: Wed, 28 Sep 2005 19:21:32 GMT
From: Harry Haller <Harry@Steppenwolf.com>
Subject: Re: PPM not working
Message-Id: <hmqlj1pb7rshm5eb77mi8davjkogqepbtc@4ax.com>
On Wed, 16 Mar 2005 17:38:26 -0500, Ken <x3v0-usenet@yahoo.com> wrote:
>You can download ppms from activestate directly from:
>http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/
>
>After downloading a activestate ppm, unzip it then just run the ppd file
>through ppm:
>ppm c:/path/to/module-name.ppd
>
>The problem with this is that activestate does not have a ppm for
>XML::Simple. Don't worry, you can get it here:
>http://theoryx5.uwinnipeg.ca/ppms/XML-Simple.ppd
>
>Note that the above ppm is going to try pulling the module from the
>theoryx5 site, so if you have a firewall problem it may still fail. In
>that case, you can download the module from:
>http://theoryx5.uwinnipeg.ca/ppms/x86/XML-Simple.tar.gz
>
>Then edit the XML-Simple.ppd file. Change this line:
>
><CODEBASE HREF="http://theoryx5.uwinnipeg.ca/ppms/x86/XML-Simple.tar.gz" />
>
>To this:
>
><CODEBASE HREF="XML-Simple.tar.gz" />
Hello Ken,
I have similar problem for a different module. What do I do if I find
that the unpacked module has no ppd file? Can I fake a ppd file? I
am running ActiveState on Windows XP
The module is:
WWW-Yahoo-Groups-1.91
The directory structure looks like this:
WWW
|
+- Yahoo
|
+- Groups
Groups.pm
|
+- Errors.pm
Mechanize.pm
Note: I had a look at the XML-Simple module you talked about above
and I couldn't find a 'XML-Simple.ppd' in that. Could that be why ppm
can't find the modules?
>Then run the newly edited ppd file through ppm (making sure
>XML-Simple.tar.gz is the same directory as XML-Simple.ppd)
>
>- Ken
>
>Doug Wells wrote:
>> I'm trying to get XML::Simple and I'm having trouble. I haven't used
>> PPM in a while, but I can't seem to get it to return a listing when I
>> search for XML (it just hangs there until I Ctrl-C). I assume it could
>> be a firewall issue (I have Windows XP firewall), but I turned it off
>> and it did the same thing. I tried getting the file from CPAN, but have
>> never loaded a module without PPM.
>>
>> Can anyone offer suggestions?
>> Thanks
>> Doug
------------------------------
Date: 28 Sep 2005 20:41:54 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: Use of hash variables in module call - puzzling behaviour
Message-Id: <dhev6i$j05$1@mamenchi.zrz.TU-Berlin.DE>
Henry Law <news@lawshouse.org> wrote in comp.lang.perl.misc:
> Anno Siegel wrote:
> > Henry Law <news@lawshouse.org> wrote in comp.lang.perl.misc:
>
> >>Using the variables in the hash causes errors in Mail::Internet; using
> >>equivalent variables from a hash created from data in the program does
> >>not cause the same error. Odder still, the error doesn't occur at all
> >>when I run the same program under ActiveState Perl in Windows.
All this is very puzzling, so I chased down an error with ParserDetails.ini
and got XML::Simple to install (plus Mail::Internet and Mail::Header).
However, I cannot reproduce the problem.
There are several variants of XML::Simple: SAX-based vs. (whatever)-based,
and Expat-supported or not. What I have is probably SAX without Expat.
What are you running?
Something else: Could some encoding deviltry be going on? I believe it
is possible for strings to be eq, but have different byte representations.
If that is possible at all it may be worth looking into.
Anno
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
------------------------------
Date: Wed, 28 Sep 2005 22:20:46 +0100
From: Henry Law <news@lawshouse.org>
Subject: Re: Use of hash variables in module call - puzzling behaviour
Message-Id: <1127942430.15874.0@nnrp-t71-03.news.uk.clara.net>
Anno Siegel wrote:
>>>Henry Law <news@lawshouse.org> wrote in comp.lang.perl.misc:
>>
>>>>Using the variables in the hash causes errors in Mail::Internet; using
>>>>equivalent variables from a hash created from data in the program does
>>>>not cause the same error. Odder still, the error doesn't occur at all
>>>>when I run the same program under ActiveState Perl in Windows.
>
>
> All this is very puzzling, so I chased down an error with ParserDetails.ini
> and got XML::Simple to install (plus Mail::Internet and Mail::Header).
> However, I cannot reproduce the problem.
Anno, thank you for taking the trouble to do that on my behalf. I'm not
terribly surprised, though, that you couldn't reproduce the problem
since it only happens to me on Linux and not on Windows. (Come to that,
I have another Linux machine around - I'll see what happens on there)
> There are several variants of XML::Simple: SAX-based vs. (whatever)-based,
> and Expat-supported or not. What I have is probably SAX without Expat.
> What are you running?
Hmm; not sure how to find that out. I used the "-m" flag on perldoc
which showed this header at the top of the module:
$Id: Simple.pm,v 1.20 2004/04/05 09:12:47
... which seems to suggest v1.20 but I don't know about Expat.
According to the perldoc it does support SAX though.
> Something else: Could some encoding deviltry be going on? I believe it
> is possible for strings to be eq, but have different byte representations.
> If that is possible at all it may be worth looking into.
Anything's worth looking into just now; and that is possible since the
original XML file was created on Windows - but I thought it was just
plain single-byte ASCII. I'll look at the XML with a hex editor to make
sure.
As a result of the correspondence on this I've got a long list of "what
happens if" diagnostics, which I'll have a go at over a day or so. If
that fails I shall adopt the last resort of the frustrated programmer
and assign the problem to the usual cause*. Then I'll look for a
work-round of some kind - maybe assigning the offending variables to an
intermediate variable would get round the problem. In the mean time,
thanks.
* i.e. Spacemen
--
Henry Law <>< Manchester, England
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 8466
***************************************