[28256] in Perl-Users-Digest
Perl-Users Digest, Issue: 9620 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Aug 17 14:30:39 2006
Date: Thu, 17 Aug 2006 11:30:32 -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, 17 Aug 2006 Volume: 10 Number: 9620
Today's topics:
Sort Keys in hash table? <zhushenli@gmail.com>
Re: Sort Keys in hash table? <1usa@llenroc.ude.invalid>
Re: Sort Keys in hash table? <zhushenli@gmail.com>
Re: Sort Keys in hash table? <simon@unisolve.com.au>
The Semicolon Wars as a software industry and human con <xah@xahlee.org>
Re: The Semicolon Wars as a software industry and human <DJStunks@gmail.com>
Re: The Semicolon Wars as a software industry and human <j_mckitrick@yahoo.com>
Re: The Semicolon Wars as a software industry and human <iainking@gmail.com>
Re: The Semicolon Wars as a software industry and human <jurgenex@hotmail.com>
Re: The Semicolon Wars as a software industry and human <kentilton@gmail.com>
Re: traffic control question <glex_no-spam@qwest-spam-no.invalid>
using NNTPClient to fetch messages <ahakim@mac.com>
Re: using NNTPClient to fetch messages <rvtol+news@isolution.nl>
Re: Website Interface <glex_no-spam@qwest-spam-no.invalid>
Re: Workflow Systems--Multiposted usenet@DavidFilmer.com
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 16 Aug 2006 15:49:22 -0700
From: "Davy" <zhushenli@gmail.com>
Subject: Sort Keys in hash table?
Message-Id: <1155768562.219578.123460@i3g2000cwc.googlegroups.com>
Hi all,
I want to sort key in hash table.
The hash table key format is some integer split with ";" like:
"5;12;17;28"
And I want to sort the key from the first integer to the last
integer(i.e. the first integer has highest priority, and the second,
third,... until the last):
example:
5;12;17;28
5;13;15;2
5;13;18;1
Thanks!
Davy
------------------------------
Date: Wed, 16 Aug 2006 23:07:58 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: Sort Keys in hash table?
Message-Id: <Xns9821C2BB551Dasu1cornelledu@127.0.0.1>
"Davy" <zhushenli@gmail.com> wrote in news:1155768562.219578.123460
@i3g2000cwc.googlegroups.com:
> I want to sort key in hash table.
> The hash table key format is some integer split with ";" like:
> "5;12;17;28"
> And I want to sort the key from the first integer to the last
> integer(i.e. the first integer has highest priority, and the second,
> third,... until the last):
>
> example:
> 5;12;17;28
> 5;13;15;2
> 5;13;18;1
perldoc -f sort
perldoc -q sort
perldoc Sort::Maker
http://search.cpan.org/~uri/Sort-Maker-0.05/Sort/Maker.pm
Show us what you have tried after reading the above, tell us what is not
working, and we'll help.
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)
comp.lang.perl.misc guidelines on the WWW:
http://augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: 16 Aug 2006 19:06:38 -0700
From: "Davy" <zhushenli@gmail.com>
Subject: Re: Sort Keys in hash table?
Message-Id: <1155780398.380327.208730@i42g2000cwa.googlegroups.com>
A. Sinan Unur wrote:
> "Davy" <zhushenli@gmail.com> wrote in news:1155768562.219578.123460
> @i3g2000cwc.googlegroups.com:
>
> > I want to sort key in hash table.
> > The hash table key format is some integer split with ";" like:
> > "5;12;17;28"
> > And I want to sort the key from the first integer to the last
> > integer(i.e. the first integer has highest priority, and the second,
> > third,... until the last):
> >
> > example:
> > 5;12;17;28
> > 5;13;15;2
> > 5;13;18;1
>
> perldoc -f sort
>
> perldoc -q sort
>
> perldoc Sort::Maker
> http://search.cpan.org/~uri/Sort-Maker-0.05/Sort/Maker.pm
[snip]
Hi Sinan,
Thank you for your help! I will try to use the Maker.pm.
Because I want to learn Perl, I want to write routines. Anyone can
recommend some references on this subject.
Thanks!
Davy
>
> Show us what you have tried after reading the above, tell us what is not
> working, and we'll help.
>
> Sinan
> --
> A. Sinan Unur <1usa@llenroc.ude.invalid>
> (remove .invalid and reverse each component for email address)
>
> comp.lang.perl.misc guidelines on the WWW:
> http://augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: Thu, 17 Aug 2006 18:30:42 +1000
From: Simon Taylor <simon@unisolve.com.au>
Subject: Re: Sort Keys in hash table?
Message-Id: <ec19l1$1u4u$1@otis.netspace.net.au>
Hello Davy,
> Thank you for your help! I will try to use the Maker.pm.
> Because I want to learn Perl, I want to write routines. Anyone can
> recommend some references on this subject.
This is a great place to start:
http://learn.perl.org/library/beginning_perl/
Regards,
Simon Taylor
--
http://www.perlmeme.org
------------------------------
Date: 17 Aug 2006 06:42:55 -0700
From: "Xah Lee" <xah@xahlee.org>
Subject: The Semicolon Wars as a software industry and human condition
Message-Id: <1155822175.534005.100490@75g2000cwc.googlegroups.com>
Of interest:
=E2=80=A2 The Semicolon Wars, by Brian Hayes. 2006.
http://www.americanscientist.org/template/AssetDetail/assetid/51982
in conjunction to this article, i recommend:
=E2=80=A2 Software Needs Philosophers, by Steve Yegge, 2006
http://xahlee.org/Periodic_dosage_dir/_p/software_phil.html
=E2=80=A2 What Languages to Hate, Xah Lee, 2002
http://xahlee.org/UnixResource_dir/writ/language_to_hate.html
Xah
xah@xahlee.org
=E2=88=91 http://xahlee.org/
------------------------------
Date: 17 Aug 2006 07:22:48 -0700
From: "DJ Stunks" <DJStunks@gmail.com>
Subject: Re: The Semicolon Wars as a software industry and human condition
Message-Id: <1155824568.318184.102980@i42g2000cwa.googlegroups.com>
Xah Lee wrote:
> Of interest:
>
> =B7 The Semicolon Wars, by Brian Hayes. 2006.
> http://www.americanscientist.org/template/AssetDetail/assetid/51982
>
> in conjunction to this article, i recommend:
>
> =B7 Software Needs Philosophers, by Steve Yegge, 2006
> http://xahlee.org/Periodic_dosage_dir/_p/software_phil.html
>
> =B7 What Languages to Hate, Xah Lee, 2002
> http://xahlee.org/UnixResource_dir/writ/language_to_hate.html
speak of the devil...
-jp
------------------------------
Date: 17 Aug 2006 07:41:57 -0700
From: "jmckitrick" <j_mckitrick@yahoo.com>
Subject: Re: The Semicolon Wars as a software industry and human condition
Message-Id: <1155825717.383393.146500@b28g2000cwb.googlegroups.com>
What's more of a waste of time:
1. The 30 minutes he took to write his vacuous essay.
2. The 15 seconds it took to skim it and see nothing worth reading.
3. The 30 seconds it took to write this post.
Tough call.
------------------------------
Date: 17 Aug 2006 08:19:03 -0700
From: "Iain King" <iainking@gmail.com>
Subject: Re: The Semicolon Wars as a software industry and human condition
Message-Id: <1155827943.041208.51220@i3g2000cwc.googlegroups.com>
Xah Lee wrote:
> Of interest:
>
> =E2=80=A2 The Semicolon Wars, by Brian Hayes. 2006.
> http://www.americanscientist.org/template/AssetDetail/assetid/51982
>
> in conjunction to this article, i recommend:
>
> =E2=80=A2 Software Needs Philosophers, by Steve Yegge, 2006
> http://xahlee.org/Periodic_dosage_dir/_p/software_phil.html
>
> =E2=80=A2 What Languages to Hate, Xah Lee, 2002
> http://xahlee.org/UnixResource_dir/writ/language_to_hate.html
>
> Xah
> xah@xahlee.org
> =E2=88=91 http://xahlee.org/
I'm confused - I thought Xah Lee loved Perl? Now he's bashing it?
Huh?
Iain
------------------------------
Date: Thu, 17 Aug 2006 15:22:20 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: The Semicolon Wars as a software industry and human condition
Message-Id: <MQ%Eg.13019$Z1.9299@trnddc03>
Iain King wrote:
> Xah Lee wrote:
>> Of interest:
>>
>> . The Semicolon Wars, by Brian Hayes. 2006.
>> http://www.americanscientist.org/template/AssetDetail/assetid/51982
>>
>> in conjunction to this article, i recommend:
>>
>> . Software Needs Philosophers, by Steve Yegge, 2006
>> http://xahlee.org/Periodic_dosage_dir/_p/software_phil.html
>>
>> . What Languages to Hate, Xah Lee, 2002
>> http://xahlee.org/UnixResource_dir/writ/language_to_hate.html
>>
>> Xah
>> xah@xahlee.org
>> ? http://xahlee.org/
>
> I'm confused - I thought Xah Lee loved Perl? Now he's bashing it?
He only loves himself.
Aside of that:
+-------------------+ .:\:\:/:/:.
| PLEASE DO NOT | :.:\:\:/:/:.:
| FEED THE TROLLS | :=.' - - '.=:
| | '=(\ 9 9 /)='
| Thank you, | ( (_) )
| Management | /`-vvv-'\
+-------------------+ / \
| | @@@ / /|,,,,,|\ \
| | @@@ /_// /^\ \\_\
@x@@x@ | | |/ WW( ( ) )WW
\||||/ | | \| __\,,\ /,,/__
\||/ | | | jgs (______Y______)
/\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
==============================================================
jue
------------------------------
Date: Thu, 17 Aug 2006 12:06:00 -0400
From: Ken Tilton <kentilton@gmail.com>
Subject: Re: The Semicolon Wars as a software industry and human condition
Message-Id: <0u0Fg.345$fE5.316@newsfe11.lga>
Xah Lee wrote:
>
> • What Languages to Hate, Xah Lee, 2002
> http://xahlee.org/UnixResource_dir/writ/language_to_hate.html
Nonsense. This is technology, not religion. Technologists in fact have a
responsibility to identify and use the best tools available.
Xah, you are getting soft in your old age. :)
hth, kenny
--
Cells: http://common-lisp.net/project/cells/
"I'll say I'm losing my grip, and it feels terrific."
-- Smiling husband to scowling wife, New Yorker cartoon
------------------------------
Date: Thu, 17 Aug 2006 12:35:17 -0500
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: traffic control question
Message-Id: <44e4a911$0$25777$815e3792@news.qwest.net>
a wrote:
> If I want to process the search result, I need to fill out the form, submit
> and wait for the reply from the server before I process the search result.
How else would you process the result if you don't wait for the reply?
> I would like to add some traffic control to it, like writing a loop to wait
> for the $response -> is_success, then break the loop.
You don't need to "loop", you simply wait for the response. The request
will succeed or fail.
Post the request.
Wait for success/failure.
if success, do something else
else it's a failure, do something else
>It may need to pass
> the token to the OS for receiving the success message. How can I do it?
What the heck is "the token"?
Give us some code with more of what you're wanting to do.
------------------------------
Date: Wed, 16 Aug 2006 21:25:31 -0400
From: Ali Hakim <ahakim@mac.com>
Subject: using NNTPClient to fetch messages
Message-Id: <2006081621253116807-ahakim@maccom>
Hi. I'm using NNTPClient.pm to fetch messages in a perl script. I'm
having two problems:
1. I think messages are being skipped (the message numbers are not
consecutive)
2. I need a way to mark which messages I've downloaded already so they
are not downloaded again. I'd like to use the newnews function to do
this for me but newnews doesn't seem to return the message number. If
anybody know how to get the message number from newnews, that would
solve this problem.
I'd appreciate any help you can give. Thanks.
Ali
------------------------------
Date: Thu, 17 Aug 2006 04:51:11 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: using NNTPClient to fetch messages
Message-Id: <ec0sq4.1bo.1@news.isolution.nl>
Ali Hakim schreef:
> Hi. I'm using NNTPClient.pm to fetch messages in a perl script. I'm
> having two problems:
Your questions are not about Perl.
> 1. I think messages are being skipped (the message numbers are not
> consecutive)
The don't need to be. On most servers they are handed out per group, but
messages can get cancelled or removed for other reasons, so holes are
normal.
I even know a server that uses global message numbers (so not a sequence
per group, but per server), so on that server even big holes are normal.
On many servers the limit is 2^31-1, so at some moment a server might
have to go off-line and renumber...
> 2. I need a way to mark which messages I've downloaded already so
> they are not downloaded again. I'd like to use the newnews function
> to do this for me but newnews doesn't seem to return the message
> number. If anybody know how to get the message number from newnews,
> that would solve this problem.
Not all severs support newnews. You could use xover, and store the
highest message number (per group) for reuse.
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Thu, 17 Aug 2006 12:24:23 -0500
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: Website Interface
Message-Id: <44e4a683$0$10309$815e3792@news.qwest.net>
Zyad.Tamimi@gmail.com wrote:
> It appears the search form was written in javascript. According to
> their CPAN entry Mechanize does not support javascript. Any other
> ideas of how i could utilize this search field through my script?
Look at the Javascript, figure out the variables and their values, and
code it. It's calling something (CGI, JSP, etc.) with some variables,
you just need to figure out what they are and send your request to the
site, just like the Javascript does.
------------------------------
Date: 16 Aug 2006 17:50:15 -0700
From: usenet@DavidFilmer.com
Subject: Re: Workflow Systems--Multiposted
Message-Id: <1155775815.439078.281920@m73g2000cwd.googlegroups.com>
usenet@DavidFilmer.com wrote:
> Looking for a web URL in the message body might be a more reliable
> filter to avoid responding to spam.
That was a quick and easy little tweak to make, and I think it will
work nearly all of the time.
The bot ignores cutlines and below (if the cutlines are properly
formatted: /^-- $/). I could see where a real multiposter might have an
URL in his tag (so he'll still get flagged), but I think spam will have
URLs in the message body (I think some newsreaders can be configured to
not display tags, and spammers wouldn't want that).
--
David Filmer (http://DavidFilmer.com)
------------------------------
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 9620
***************************************