[25959] in Perl-Users-Digest
Perl-Users Digest, Issue: 8178 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jun 16 18:05:19 2005
Date: Thu, 16 Jun 2005 15:05:06 -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, 16 Jun 2005 Volume: 10 Number: 8178
Today's topics:
Re: is there a useful book? <abigail@abigail.nl>
LWP::Parallel how to process results <john@castleamber.com>
perl + POP3 Protocol <slake2@ns.sympatico.ca>
Re: perl + POP3 Protocol <1usa@llenroc.ude.invalid>
Re: perl + POP3 Protocol <nobull@mail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 16 Jun 2005 20:57:13 GMT
From: Abigail <abigail@abigail.nl>
Subject: Re: is there a useful book?
Message-Id: <slrndb3pt8.14f.abigail@alexandra.abigail.nl>
Alexander Teves (black_dream@web.de) wrote on MMMMCCCVII September
MCMXCIII in <URL:news:d8rg6k$vv9$03$1@news.t-online.com>:
`'
`' i used to code in ruby and purebasic, and i want to take a look at perl. so,
`' is there any nice tutorial / book / website or something? e.g. for ruby
`' there is the programming guide which is for free.
There are no Perl books, as any websearch would have told you. Sites of
publishers of IT books, like Manning, Addison-Wesley or O'Reilly would
reveal they don't publish any books.
Perl knowledge is arcana, and passed from mother to daughter using
ancient rites, performed when the moon is blue.
Abigail
--
perl -wlne '}for($.){print' file # Count the number of lines.
------------------------------
Date: 16 Jun 2005 18:49:54 GMT
From: John Bokma <john@castleamber.com>
Subject: LWP::Parallel how to process results
Message-Id: <Xns96778C934CF18castleamber@130.133.1.4>
Hi,
I am using LWP::Parallel::UserAgent
I register requests, and $pua->wait() returns a hash ref, the keys are the
stringified registered requests (HTTP::Requests).
Since I want each result to have it's own handler, I currently make a look
up table (hash) with stringified request object ref as key and a ref to a
sub as value, and do something like:
for my $key ( keys %$entries ) {
my $response = $entries->{$key}->response;
my $callback = $key2callback{ $key };
$callback->( $response->content );
}
Is there a more clean approach?
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
------------------------------
Date: Thu, 16 Jun 2005 18:50:14 GMT
From: "Stephen Lake" <slake2@ns.sympatico.ca>
Subject: perl + POP3 Protocol
Message-Id: <GRjse.48024$Ph4.1250235@ursa-nb00s0.nbnet.nb.ca>
Howdy ladies and gentlemen,
Can anyone kick me in the right direction of how to extract certain headers
from a Mail message in POP3?
------------------------------
Date: Thu, 16 Jun 2005 19:02:31 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: perl + POP3 Protocol
Message-Id: <Xns96779901C5C48asu1cornelledu@127.0.0.1>
"Stephen Lake" <slake2@ns.sympatico.ca> wrote in
news:GRjse.48024$Ph4.1250235@ursa-nb00s0.nbnet.nb.ca:
> Can anyone kick me in the right direction of how to extract certain
> headers from a Mail message in POP3?
CPAN is your friend:
<URL: http://search.cpan.org/~sdowd/Mail-POP3Client-2.16/>
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: Thu, 16 Jun 2005 20:11:06 +0100
From: Brian McCauley <nobull@mail.com>
Subject: Re: perl + POP3 Protocol
Message-Id: <d8sisb$9od$1@redhat2.bham.ac.uk>
Stephen Lake wrote:
> Howdy ladies and gentlemen,
>
> Can anyone kick me in the right direction of how to extract certain headers
> from a Mail message in POP3?
I'd use modules. Probably ones with "Mail", "Header" and "POP3" in
their names.
For example Net::POP3 and Mail::Header.
------------------------------
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 8178
***************************************