[21743] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3947 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Oct 10 14:11:09 2002

Date: Thu, 10 Oct 2002 11:10:22 -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           Thu, 10 Oct 2002     Volume: 10 Number: 3947

Today's topics:
    Re: Newbie: Simple but GOOD form handler - WHERE? news@roaima.freeserve.co.uk
    Re: Newbie: Simple but GOOD form handler - WHERE? <newsgroups@vendel.info>
    Re: paragraph mode read a filehandle <sun_tong_001@yahoo.com>
    Re: Please help me with my Redirection script. <nobull@mail.com>
        PPM installer:  "Could not locate a PPD file for packag <bbrian@telus.net>
    Re: PPM installer:  "Could not locate a PPD file for pa (Helgi Briem)
    Re: PPM installer:  "Could not locate a PPD file for pa <bbrian@telus.net>
    Re: PPM installer:  "Could not locate a PPD file for pa <penny1482@attbi.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Thu, 10 Oct 2002 14:50:36 +0100
From: news@roaima.freeserve.co.uk
Subject: Re: Newbie: Simple but GOOD form handler - WHERE?
Message-Id: <cj04oa.m02.ln@moldev.cmagroup.co.uk>

Dan Vendel <newsgroups@vendel.info> wrote:
> I don't know anything about scripting.

It looks like you don't know much about usenet, either. You asked this
in alt.perl - and have got a fair ol' discussion going on. You should
learn to cross-post if you want to post the same question to two (or
more) groups.

Don't post here and somewhere else, separately. You'll end up with two
discussion threads - both of which will probably say much the same thing -
and you'll have wasted your time reading both, and our time replying.

Chris
-- 
@s=split(//,"Je,\nhn ersloak rcet thuarP");$k=$l=@s;for(;$k;$k--){$i=($i+1)%$l
until$s[$i];$c=$s[$i];print$c;undef$s[$i];$i=($i+(ord$c))%$l}


------------------------------

Date: Thu, 10 Oct 2002 19:09:28 +0200
From: Dan Vendel <newsgroups@vendel.info>
Subject: Re: Newbie: Simple but GOOD form handler - WHERE?
Message-Id: <3DA5B448.2030704@vendel.info>

news@roaima.freeserve.co.uk wrote:

> Dan Vendel <newsgroups@vendel.info> wrote:

> It looks like you don't know much about usenet, either. You asked this
> in alt.perl - and have got a fair ol' discussion going on. You should
> learn to cross-post if you want to post the same question to two (or
> more) groups.
> 
> Don't post here and somewhere else, separately. You'll end up with two
> discussion threads - both of which will probably say much the same thing -
> and you'll have wasted your time reading both, and our time replying.
> 
> Chris
> 

I ask to, please, forgive me, Oh, Allmighty Know-It-All, for having 
upset you by this outrageous blunder.

-- 
"He who asks a question is a fool for five minutes; he who does not ask 
a question remains a fool forever."
-Chinese Proverb



------------------------------

Date: Thu, 10 Oct 2002 13:31:15 GMT
From: * Tong * <sun_tong_001@yahoo.com>
Subject: Re: paragraph mode read a filehandle
Message-Id: <3DA58123.EF80949@yahoo.com>



* Tong * wrote:
> 
> Hi,
> 
> How can I read texts from a filehandle in paragraph mode?
> 
> I.e., why not the following code give me paragraph mode results? I still
> get lots of empty lines.
> 
>         my $msgbodyfh = $nntp->bodyfh($first);
> 
>         # read in the body in paragraph mode
>         local $/="";
>         @newsarticle = ();
>         while ($bodyline=<$msgbodyfh>) {
>             push(@newsarticle, $bodyline);
>         }
> 
> Thanks.

Thank you all for the follow up. 

up till now, seems no solution yet. Debates so far:

1. the $/ assignment, apparently I've done it right.

2. Yes, I am using Net::NNTP, and as Benjamin pointed out, the version
of Net::NNTP which comes with 5.8.0 has a bodyfh method. There is no
problem I am reading the news body. Just want to eliminate the excessive
blank lines. 

Any ideas?

PS. I've read from google that in Perl 6.0, the input record separator
is associated with file handle, so that you can tell file handle to work
in paragraph mode once you have it. Don't know if such thing exist in
perl 5.

-- 
Tong (remove underscore(s) to reply)
  *niX Power Tools Project: http://xpt.sourceforge.net/
  - All free contribution & collection


------------------------------

Date: 10 Oct 2002 17:53:03 +0100
From: Brian McCauley <nobull@mail.com>
Subject: Re: Please help me with my Redirection script.
Message-Id: <u9vg4aw80g.fsf@wcl-l.bham.ac.uk>

tiltonj@erols.com (Jay Tilton) writes:

> On 9 Oct 2002 05:03:10 -0700, danielrc15@hotmail.com (drc15) wrote:
> 
> | I am using the following redirection script, (quite a popular one).
> 
> [snip]
> 
> | I am calling the script in the following way:
> | 
> | <a href="www.myurl.com/cgi-bin/redirect.pl?url=http://www.myurl2.com/b.asp?A=1234&I=1899">LINK</a>
> | 
> | I thought the '&' would get turned into '%26' on the url line, but it
> | does not 
> 
> Why would that happen?  The href field is a literal string.
> 
> | but, if you do this manually the redirection works.
> 
> So do the escaping when the HTML is generated.

If the OP wants a paramter A with a value "1234&I=1899" then the "&"
should be encoded as "%26".

If the OP wants a paramter A with a value "1234" and a paramter I with
a value "1899" then the "&" should be encoded as "&amp;".

None of this, of course, has the slightest thing to do with Perl.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


------------------------------

Date: Thu, 10 Oct 2002 15:55:44 GMT
From: "Brian" <bbrian@telus.net>
Subject: PPM installer:  "Could not locate a PPD file for package X"
Message-Id: <4qhp9.1710$ER5.217134@news2.telusplanet.net>


I frequently am unsuccseeful using ActiveState's PPM (Perl Package Manager)
and PPM3 installation programs. The following result is typical, even in the
case of some common packages. What's the best way of installing these
modules, and should ActiveState's ppm/ppm3 be avoided?

D:\WINDOWS\system32>ppm install LWP-UserAgent
Installing package 'LWP-UserAgent'...
Error installing package 'LWP-UserAgent': Could not locate a PPD file for
package LWP-UserAgent





------------------------------

Date: Thu, 10 Oct 2002 16:08:21 GMT
From: helgi@decode.is (Helgi Briem)
Subject: Re: PPM installer:  "Could not locate a PPD file for package X"
Message-Id: <3da5a535.133371948@news.cis.dfn.de>

On Thu, 10 Oct 2002 15:55:44 GMT, "Brian" <bbrian@telus.net>
wrote:

>I frequently am unsuccseeful using ActiveState's PPM 

You are probably behind a proxy server/firewall and
you need to specify that by setting the 
HTTP_proxy environment variable to the 
appropriate value (same as your browser, probably
and looks like : http://proxy.domain.com:port

Why haven't you read perldoc ppm which tells
you all about this?

>should ActiveState's ppm/ppm3 be avoided?

No, it is excellent.

-- 
Regards, Helgi Briem
helgi AT decode DOT is

                           A: Top posting
                           Q: What is the most irritating thing on Usenet?
                                           - "Gordon" on apihna


------------------------------

Date: Thu, 10 Oct 2002 16:47:10 GMT
From: "Brian" <bbrian@telus.net>
Subject: Re: PPM installer:  "Could not locate a PPD file for package X"
Message-Id: <iaip9.1773$ER5.226142@news2.telusplanet.net>

> >I frequently am unsuccseeful using ActiveState's PPM
>
> You are probably behind a proxy server/firewall and
> you need to specify that by setting the
> HTTP_proxy environment variable to the
> appropriate value (same as your browser, probably
> and looks like : http://proxy.domain.com:port
>
> Why haven't you read perldoc ppm which tells
> you all about this?
>
> >should ActiveState's ppm/ppm3 be avoided?
>
> No, it is excellent.
>
> --
> Regards, Helgi Briem
> helgi AT decode DOT is

Thanks for your advice. However, I have the same problem when my firewall is
disabled.

Brian





------------------------------

Date: Thu, 10 Oct 2002 16:52:58 GMT
From: "Dick Penny" <penny1482@attbi.com>
Subject: Re: PPM installer:  "Could not locate a PPD file for package X"
Message-Id: <Kfip9.41758$7I6.128701@rwcrnsc52.ops.asp.att.net>


"Helgi Briem" <helgi@decode.is> wrote in message
> Why haven't you read perldoc ppm which tells
> you all about this?
>
Err, my perldoc has EXACTLY 4 lines on ppm, and they do NOT communicate a
thing. Again, perldoc sucks.

Why don't you "folks in the know" give the questioner a bit of help?

But speaking of ppm:
1) why doesn't insalling ppm3 completely wipe out ppm?
2) since ppm3 is so much of an improvement, why did the gurus not change the
prompt to ppm3?

Dick Penny




------------------------------

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.  

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 3947
***************************************


home help back first fref pref prev next nref lref last post