[28253] in Perl-Users-Digest
Perl-Users Digest, Issue: 9617 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Aug 17 14:15:36 2006
Date: Thu, 17 Aug 2006 11:15:28 -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: 9617
Today's topics:
Re: My multipost-detecting usenet bot (David Filmer) usenet@DavidFilmer.com
Re: My multipost-detecting usenet bot (David Filmer) <john@castleamber.com>
Re: My multipost-detecting usenet bot (David Filmer) usenet@DavidFilmer.com
Re: My multipost-detecting usenet bot (David Filmer) <john@castleamber.com>
Re: My multipost-detecting usenet bot (David Filmer) <benmorrow@tiscali.co.uk>
Re: My multipost-detecting usenet bot (David Filmer) usenet@DavidFilmer.com
Re: My multipost-detecting usenet bot (David Filmer) <benmorrow@tiscali.co.uk>
new CPAN modules on Thu Aug 17 2006 (Randal Schwartz)
Numbers & Whitespace Help! <digitalje@yahoo.com>
Re: Numbers & Whitespace Help! <sherm@Sherm-Pendleys-Computer.local>
Re: Numbers & Whitespace Help! <jurgenex@hotmail.com>
Re: Numbers & Whitespace Help! <digitalje@yahoo.com>
Re: Numbers & Whitespace Help! <daveandniki@ntlworld.com>
Re: Numbers & Whitespace Help! <digitalje@yahoo.com>
Re: Numbers & Whitespace Help! <digitalje@yahoo.com>
Re: Numbers & Whitespace Help! <mritty@gmail.com>
OT: Please participate in a non-profit academic researc <mothra@nowhereatall.com>
Re: Proposal: extending perldoc -f <benmorrow@tiscali.co.uk>
Re: Proposal: extending perldoc -f anno4000@radom.zrz.tu-berlin.de
Re: Pulling data based on date time returns error <glex_no-spam@qwest-spam-no.invalid>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 16 Aug 2006 16:09:54 -0700
From: usenet@DavidFilmer.com
Subject: Re: My multipost-detecting usenet bot (David Filmer)
Message-Id: <1155769794.888260.28040@i42g2000cwa.googlegroups.com>
John Bokma wrote:
> How about checking for
> /perl/i
> /cgi/i
> and monitor some multi posts for more words? Can't be that many :-)
Lemme go back and research some multiposts that I (and others) have
manually flagged and see how effective a keyword search would be. I
might find that /doesn'?t work/i would catch most of them... ;^))
> The (my) problem is that I now start to see replies to canceled messages
But my point is that the messages aren't cancelled... at least not on
my newsserver. Are they cancelled on yours (ie, do you see the reply
but not the original?)
> > ... but how long do cancels take to run?
> Depends on who cancels them
I was talking about automated spam cancels (by filtering systems), not
user cancels. Or is spam filtering done prior to publishing the post?
I'm not sure how newsservers filter out spam.
> If he has [replies], then don't post (IIRC you do that now?)
Not quite. The bot will flag the original multipost, even if it has
replies (it ignores ALL replies, including replies which might be
cut-and-paste answers to multiposted questions, or even cut-and-paste
answers to similar questions, either of which would hash out as
multiposts but aren't really multiposts, IMHO).
But I'm not sure that it is undesirable for the bot to reply to an
answered thread. There have been past cases where I've (unknowingly)
replied to a multiposted question, only to jump to another group and
realize it was multiposted. In that case, I still respond back to both
threads and flag the post. Even though I previously replied (and, who
knows, I might have even replied correctly), flagging the message may
discourage further "rewarding" the OP with additional assistance (or
corrections to a crap answer I gave... serves the guy right).
I'm not sure why the bot should not act in the same manner...
> New subject (was: old subject).
> I suggest something like:
> Multiposted (was: Workflow Systems)
I've already implemented something like this per Dr.Ruud's suggestion
in another thread.
--
David Filmer (http://DavidFilmer.com)
------------------------------
Date: 16 Aug 2006 23:20:08 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: My multipost-detecting usenet bot (David Filmer)
Message-Id: <Xns9821BA8201AB5castleamber@130.133.1.4>
usenet@DavidFilmer.com wrote:
> John Bokma wrote:
>
>> How about checking for
>> /perl/i
>> /cgi/i
>> and monitor some multi posts for more words? Can't be that many :-)
>
> Lemme go back and research some multiposts that I (and others) have
> manually flagged and see how effective a keyword search would be. I
> might find that /doesn'?t work/i would catch most of them... ;^))
>
>> The (my) problem is that I now start to see replies to canceled
>> messages
>
> But my point is that the messages aren't cancelled... at least not on
> my newsserver. Are they cancelled on yours (ie, do you see the reply
> but not the original?)
Yes.
Notice that a cancel message is a post with a request of removal. Each
news server can be configured to honor such a request, to not honor it
and can be configured to propagate such requests or not.
>> > ... but how long do cancels take to run?
>> Depends on who cancels them
>
> I was talking about automated spam cancels (by filtering systems), not
> user cancels. Or is spam filtering done prior to publishing the post?
> I'm not sure how newsservers filter out spam.
IIRC a spam filter will just drop the post. However, there are cancel
bots that work similar like yours, they just post a different message
(cancel), and there is a delay with those, of course.
I am also talking about manual cancels. In general you don't want to
reply to *any* message that is canceled. Practically this is impossible,
so I would be happy if all spam is not considered multipost.
>> If he has [replies], then don't post (IIRC you do that now?)
>
> Not quite. The bot will flag the original multipost, even if it has
> replies (it ignores ALL replies, including replies which might be
> cut-and-paste answers to multiposted questions, or even cut-and-paste
> answers to similar questions, either of which would hash out as
> multiposts but aren't really multiposts, IMHO).
>
> But I'm not sure that it is undesirable for the bot to reply to an
> answered thread. There have been past cases where I've (unknowingly)
> replied to a multiposted question, only to jump to another group and
> realize it was multiposted. In that case, I still respond back to
> both threads and flag the post. Even though I previously replied (and,
> who knows, I might have even replied correctly), flagging the message
> may discourage further "rewarding" the OP with additional assistance
> (or corrections to a crap answer I gave... serves the guy right).
>
> I'm not sure why the bot should not act in the same manner...
IMO no. Just assume that if there has been one reply that the poster
just got away with it. You might catch him/her later anyway. I would
(again) recommend to limit the number of messages the bot sends out.
>> New subject (was: old subject).
>> I suggest something like:
>> Multiposted (was: Workflow Systems)
>
> I've already implemented something like this per Dr.Ruud's suggestion
> in another thread.
Yeah, he beat me again :-)
--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
------------------------------
Date: 16 Aug 2006 19:01:39 -0700
From: usenet@DavidFilmer.com
Subject: Re: My multipost-detecting usenet bot (David Filmer)
Message-Id: <1155780099.025910.314690@m73g2000cwd.googlegroups.com>
usenet@DavidFilmer.com wrote:
> I believe a good (but very simple) spam filtering strategy would
> be to look for web URLs in the body of the message.
This was quick and easy, and I have done so.
I also noticed earlier that a pyramid scheme got flagged. All pyramid
schemes will contain an e-mail address in the message body (but real
multiposts rarely will), so I have coded around e-mail addresses as
well. Presently, messages are ignored if the message body (excluding
cut/tag line) matches per (using Regexp::Common):
if ($body =~m{
$RE{URI}{HTTP}{-scheme => qr{https?}}
| $RE{URI}{FTP}
| $RE{URI}{news}
| $RE{URI}{NNTP}
}xms) {
$log->debug("Ignoring msg with URI (spam?)");
next MSGNUM;
}
if ($body =~ m{($RE{Email}{Address})}xms) {
$log->debug("Ignoring msg with e-mail address (pyramid?)");
next MSGNUM;
}
I think that will ignore 99% of spam (with very few false negatives).
--
David Filmer (http://DavidFilmer.com)
------------------------------
Date: 17 Aug 2006 04:15:16 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: My multipost-detecting usenet bot (David Filmer)
Message-Id: <Xns9821EC8C6C2Acastleamber@130.133.1.4>
usenet@DavidFilmer.com wrote:
> usenet@DavidFilmer.com wrote:
>> I believe a good (but very simple) spam filtering strategy would
>> be to look for web URLs in the body of the message.
>
> This was quick and easy, and I have done so.
>
> I also noticed earlier that a pyramid scheme got flagged. All pyramid
> schemes will contain an e-mail address in the message body (but real
> multiposts rarely will), so I have coded around e-mail addresses as
> well.
Yup, you can't ignore them based on a simple count of $$$$$ :-D.
--
John Experienced Perl programmer: http://castleamber.com/
Perl help, tutorials, and examples: http://johnbokma.com/perl/
------------------------------
Date: Thu, 17 Aug 2006 03:02:51 +0100
From: Ben Morrow <benmorrow@tiscali.co.uk>
Subject: Re: My multipost-detecting usenet bot (David Filmer)
Message-Id: <bbvcr3-ile.ln1@osiris.mauzo.dyndns.org>
Quoth usenet@DavidFilmer.com:
> John Bokma wrote:
>
> > The (my) problem is that I now start to see replies to canceled messages
>
> But my point is that the messages aren't cancelled... at least not on
> my newsserver. Are they cancelled on yours (ie, do you see the reply
> but not the original?)
Something you could perhaps try is keeping a database of all your bot's
posts and cancelling them if the original article gets cancelled.
Ben
--
Heracles: Vulture! Here's a titbit for you / A few dried molecules of the gall
From the liver of a friend of yours. / Excuse the arrow but I have no spoon.
(Ted Hughes, [ Heracles shoots Vulture with arrow. Vulture bursts into ]
'Alcestis') [ flame, and falls out of sight. ] benmorrow@tiscali.co.uk
------------------------------
Date: 17 Aug 2006 09:57:54 -0700
From: usenet@DavidFilmer.com
Subject: Re: My multipost-detecting usenet bot (David Filmer)
Message-Id: <1155833874.455856.147380@p79g2000cwp.googlegroups.com>
Ben Morrow wrote:
> Something you could perhaps try is keeping a database of all your bot's posts
already do that...
> and cancelling them if the original article gets cancelled.
Not sure how to do that... can I query for canceled jobs? Or would I
need to just check every post and see if it was still available?
Of course, in this particular case, apparently a message was canceled
on John's newsserver but not on mine (GigaNews). The bot runs on
GigaNews; it has no way to know about cancels on other servers.
I have never heard anything negative about GigaNews (such as that they
don't honor cancels). One thing I can say for sure about GN - it's
darn fast. But, if I find that they routinely don't honor cancels that
other servers do, I'll regroup.
--
David Filmer (http://DavidFilmer.com)
------------------------------
Date: Thu, 17 Aug 2006 18:42:49 +0100
From: Ben Morrow <benmorrow@tiscali.co.uk>
Subject: Re: My multipost-detecting usenet bot (David Filmer)
Message-Id: <pdmer3-6qr.ln1@osiris.mauzo.dyndns.org>
Quoth usenet@DavidFilmer.com:
> Ben Morrow wrote:
> > Something you could perhaps try is keeping a database of all your bot's posts
>
> already do that...
>
> > and cancelling them if the original article gets cancelled.
>
> Not sure how to do that... can I query for canceled jobs? Or would I
> need to just check every post and see if it was still available?
I admit I don't really know, but I would have thought that the control
message would just come down to you with the rest of the news. Then you
can grab the msgid and cancel your replies.
> Of course, in this particular case, apparently a message was canceled
> on John's newsserver but not on mine (GigaNews). The bot runs on
> GigaNews; it has no way to know about cancels on other servers.
Well, this is Usenet :).
Ben
--
It will be seen that the Erwhonians are a meek and long-suffering people,
easily led by the nose, and quick to offer up common sense at the shrine of
logic, when a philosopher convinces them that their institutions are not based
on the strictest morality. [Samuel Butler, paraphrased] benmorrow@tiscali.co.uk
------------------------------
Date: Thu, 17 Aug 2006 04:42:07 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Thu Aug 17 2006
Message-Id: <J44L27.ApC@zorch.sf-bay.org>
The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN). You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.
Apache2-SiteControl-1.05
http://search.cpan.org/~awkay/Apache2-SiteControl-1.05/
Perl web site authentication/authorization system
----
CPANPLUS-Dist-Build-0.04
http://search.cpan.org/~kwilliams/CPANPLUS-Dist-Build-0.04/
----
Catalyst-Plugin-CRUD-0.09
http://search.cpan.org/~bayside/Catalyst-Plugin-CRUD-0.09/
CRUD (create/read/update/delete) Plugin for Catalyst
----
Catalyst-Plugin-CRUD-0.10
http://search.cpan.org/~bayside/Catalyst-Plugin-CRUD-0.10/
CRUD (create/read/update/delete) Plugin for Catalyst
----
Catalyst-Plugin-FormBuilder-1.02
http://search.cpan.org/~nwiger/Catalyst-Plugin-FormBuilder-1.02/
Catalyst FormBuilder Plugin
----
Chart-EPS_graph-0.01
http://search.cpan.org/~aplonis/Chart-EPS_graph-0.01/
----
Crypt-OpenSSL-AES-0.01
http://search.cpan.org/~ttar/Crypt-OpenSSL-AES-0.01/
A Perl wrapper around OpenSSL's AES library
----
Dir-List-1.4
http://search.cpan.org/~opitz/Dir-List-1.4/
Perl extension for retrieving directory/fileinformation
----
Exception-NoException-0.04
http://search.cpan.org/~jjore/Exception-NoException-0.04/
An exception object that's always false.
----
File-Next-0.22
http://search.cpan.org/~petdance/File-Next-0.22/
File-finding iterator
----
Games-Sudoku-SudokuTk-0.01
http://search.cpan.org/~cguine/Games-Sudoku-SudokuTk-0.01/
Perl extension for blah blah blah
----
Gantry-3.38
http://search.cpan.org/~tkeefer/Gantry-3.38/
Web application framework for mod_perl, cgi, etc.
----
IO-YAML-0.05
http://search.cpan.org/~nkuitse/IO-YAML-0.05/
read and write YAML streams incrementally
----
Mail-DeliveryStatus-BounceParser-1.514
http://search.cpan.org/~rjbs/Mail-DeliveryStatus-BounceParser-1.514/
Perl extension to analyze bounce messages
----
Net-OICQ-1.1
http://search.cpan.org/~tangent/Net-OICQ-1.1/
Perl extension for QQ instant messaging protocol
----
Net-SMS-PChome-0.1
http://search.cpan.org/~snowfly/Net-SMS-PChome-0.1/
Send SMS messages via the sms.pchome.com.tw service.
----
Net-SMS-PChome-0.11
http://search.cpan.org/~snowfly/Net-SMS-PChome-0.11/
Send SMS messages via the sms.pchome.com.tw service.
----
Net-SMS-TWSMS-0.11
http://search.cpan.org/~snowfly/Net-SMS-TWSMS-0.11/
Send SMS messages via the www.twsms.com service.
----
Net-Whois-Raw-1.12
http://search.cpan.org/~despair/Net-Whois-Raw-1.12/
Get Whois information for domains
----
NetAddr-IP-4.004
http://search.cpan.org/~luismunoz/NetAddr-IP-4.004/
Manages IPv4 and IPv6 addresses and subnets
----
Object-Deadly-0.06
http://search.cpan.org/~jjore/Object-Deadly-0.06/
An object that dies whenever examined
----
Pugs-Compiler-Rule-0.15
http://search.cpan.org/~fglock/Pugs-Compiler-Rule-0.15/
Compiler for Perl 6 Rules
----
SOAP-Lite-0.69
http://search.cpan.org/~byrne/SOAP-Lite-0.69/
Perl's Web Services Toolkit
----
Sys-MemInfo-0.05
http://search.cpan.org/~scresto/Sys-MemInfo-0.05/
----
Term-Clui-1.36
http://search.cpan.org/~pjb/Term-Clui-1.36/
Perl module offering a Command-Line User Interface
----
Time-modules-2006.0814
http://search.cpan.org/~muir/Time-modules-2006.0814/
----
Win32-SDDL-0.05
http://search.cpan.org/~tojo/Win32-SDDL-0.05/
SDDL parsing module for Windows
----
Wx-TreeListCtrl-0.01
http://search.cpan.org/~mwardell/Wx-TreeListCtrl-0.01/
interface to the Wx::TreeListCtrl class
----
XML-DOM-XML_Base-0.02
http://search.cpan.org/~allenday/XML-DOM-XML_Base-0.02/
Apply xml:base to attribute values.
----
ack-1.25_01
http://search.cpan.org/~petdance/ack-1.25_01/
grep-like text finder for large trees of text
If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.
This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
http://www.stonehenge.com/merlyn/LinuxMag/col82.html
print "Just another Perl hacker," # the original
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: 17 Aug 2006 08:26:20 -0700
From: "digitalje" <digitalje@yahoo.com>
Subject: Numbers & Whitespace Help!
Message-Id: <1155828380.168500.101170@b28g2000cwb.googlegroups.com>
Hi All,
Just a quick question...
Is there a regular expression that I could use that would fail if a
number has a white space(s)embedded in it?
For example:
1.5 <-- Should pass as a valid number
1 .5 <-- Should fail since there is a white space in between the 1
and decimal.
Any help would be greatly appreciated!
Thanks,
J E
------------------------------
Date: Thu, 17 Aug 2006 11:57:28 -0400
From: Sherm Pendley <sherm@Sherm-Pendleys-Computer.local>
Subject: Re: Numbers & Whitespace Help!
Message-Id: <m2u04bz76f.fsf@Sherm-Pendleys-Computer.local>
"digitalje" <digitalje@yahoo.com> writes:
> Hi All,
>
> Just a quick question...
>
> Is there a regular expression that I could use that would fail if a
> number has a white space(s)embedded in it?
>
> For example:
>
> 1.5 <-- Should pass as a valid number
> 1 .5 <-- Should fail since there is a white space in between the 1
> and decimal.
>
> Any help would be greatly appreciated!
There are a number of docs included with Perl that explain regexes. Have a
look at:
perldoc perlrequick
perldoc perlretut
perldoc perlre
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
------------------------------
Date: Thu, 17 Aug 2006 16:02:04 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: Numbers & Whitespace Help!
Message-Id: <0q0Fg.66589$u05.26078@trnddc01>
digitalje wrote:
> Is there a regular expression that I could use that would fail if a
> number has a white space(s)embedded in it?
>
> For example:
>
> 1.5 <-- Should pass as a valid number
> 1 .5 <-- Should fail since there is a white space in between the 1
> and decimal.
Well, that is not a number.
Do you mean "if a string contains a white space"? Sure, m/\s/
------------------------------
Date: 17 Aug 2006 09:39:55 -0700
From: "digitalje" <digitalje@yahoo.com>
Subject: Re: Numbers & Whitespace Help!
Message-Id: <1155832795.865333.290640@74g2000cwt.googlegroups.com>
Thanks...
J=FCrgen Exner wrote:
> digitalje wrote:
>
> > Is there a regular expression that I could use that would fail if a
> > number has a white space(s)embedded in it?
> >
> > For example:
> >
> > 1.5 <-- Should pass as a valid number
> > 1 .5 <-- Should fail since there is a white space in between the 1
> > and decimal.
>
> Well, that is not a number.
> Do you mean "if a string contains a white space"? Sure, m/\s/
------------------------------
Date: Thu, 17 Aug 2006 18:42:04 +0200
From: "Dave" <daveandniki@ntlworld.com>
Subject: Re: Numbers & Whitespace Help!
Message-Id: <44e49c7a$0$858$ba4acef3@news.orange.fr>
"digitalje" <digitalje@yahoo.com> wrote in message
news:1155828380.168500.101170@b28g2000cwb.googlegroups.com...
> Hi All,
>
> Just a quick question...
>
> Is there a regular expression that I could use that would fail if a
> number has a white space(s)embedded in it?
>
> For example:
>
> 1.5 <-- Should pass as a valid number
> 1 .5 <-- Should fail since there is a white space in between the 1
> and decimal.
>
> Any help would be greatly appreciated!
>
> Thanks,
> J E
>
See my answer to Regular Expression for Integer and float values below
------------------------------
Date: 17 Aug 2006 09:48:04 -0700
From: "digitalje" <digitalje@yahoo.com>
Subject: Re: Numbers & Whitespace Help!
Message-Id: <1155833284.288424.36810@m79g2000cwm.googlegroups.com>
Found the expresssion, this seems to work:
^[0-9]*\.{0,1}[0-9]*$
Thanks to everybody.
Dave wrote:
> "digitalje" <digitalje@yahoo.com> wrote in message
> news:1155828380.168500.101170@b28g2000cwb.googlegroups.com...
> > Hi All,
> >
> > Just a quick question...
> >
> > Is there a regular expression that I could use that would fail if a
> > number has a white space(s)embedded in it?
> >
> > For example:
> >
> > 1.5 <-- Should pass as a valid number
> > 1 .5 <-- Should fail since there is a white space in between the 1
> > and decimal.
> >
> > Any help would be greatly appreciated!
> >
> > Thanks,
> > J E
> >
>
> See my answer to Regular Expression for Integer and float values below
------------------------------
Date: 17 Aug 2006 09:52:15 -0700
From: "digitalje" <digitalje@yahoo.com>
Subject: Re: Numbers & Whitespace Help!
Message-Id: <1155833535.341048.278710@i3g2000cwc.googlegroups.com>
Shorter and neater:
^\d*\.{0,1}\d*$
digitalje wrote:
> Found the expresssion, this seems to work:
>
> ^[0-9]*\.{0,1}[0-9]*$
>
> Thanks to everybody.
>
> Dave wrote:
> > "digitalje" <digitalje@yahoo.com> wrote in message
> > news:1155828380.168500.101170@b28g2000cwb.googlegroups.com...
> > > Hi All,
> > >
> > > Just a quick question...
> > >
> > > Is there a regular expression that I could use that would fail if a
> > > number has a white space(s)embedded in it?
> > >
> > > For example:
> > >
> > > 1.5 <-- Should pass as a valid number
> > > 1 .5 <-- Should fail since there is a white space in between the 1
> > > and decimal.
> > >
> > > Any help would be greatly appreciated!
> > >
> > > Thanks,
> > > J E
> > >
> >
> > See my answer to Regular Expression for Integer and float values below
------------------------------
Date: 17 Aug 2006 10:17:16 -0700
From: "Paul Lalli" <mritty@gmail.com>
Subject: Re: Numbers & Whitespace Help!
Message-Id: <1155835036.144946.108060@i3g2000cwc.googlegroups.com>
digitalje wrote:
> > > > Is there a regular expression that I could use that would fail if a
> > > > number has a white space(s)embedded in it?
> Shorter and neater:
>
> ^\d*\.{0,1}\d*$
You understand that each of the following would pass this test, right?
"5."
"."
".4"
".0000"
""
Paul Lalli
------------------------------
Date: Wed, 16 Aug 2006 15:19:18 -0700
From: "Mothra" <mothra@nowhereatall.com>
Subject: OT: Please participate in a non-profit academic research
Message-Id: <44e3a24b$1@usenet.ugs.com>
Randal L. Schwartz wrote:
> What you've done is the same as someone walking in to a movie theatre
> while the movie is on, and shouting "by the way, if any of you would
> like to take a survey, I'll be in the lobby".
OK, I'm offically freaked out. That is exactly what happened this weekend
when me and my wife went to see "The Decent" at a movie theatre.
Only in America.
{sigh}
Mothra
------------------------------
Date: Wed, 16 Aug 2006 21:33:52 +0100
From: Ben Morrow <benmorrow@tiscali.co.uk>
Subject: Re: Proposal: extending perldoc -f
Message-Id: <g2ccr3-evb.ln1@osiris.mauzo.dyndns.org>
Quoth Jim Gibson <jgibson@mail.arc.nasa.gov>:
> In article <gbuEg.7390$Ch.5996@clgrps13>, John W. Krahn
> <someone@example.com> wrote:
>
> > Jim Gibson wrote:
> > >
> > > Why not dispense with the option altogether? Why shouldn't I be able to
> > > type:
> > >
> > > perldoc grep
> > > perldoc while
> > > perldoc strict
> > > perldoc CGI
> > >
> > > and get the appropriate section. Are there any duplicates between
> > > keywords, built-in functions, and modules?
> >
> > Off the top of my head, 'if' keyword and 'if.pm' module.
>
> A quick scan of the table of contents of the Camel book reveals the
> open.pm module as well. So, only two non-unique identifiers so far.
>
> Proposed use case:
>
> $ perldoc open
>
> "open" is not a unique identifier. Please specify among:
>
> open module: perldoc -m open
No. I use perldoc -m (in its current incarnation) all the time. perldoc
-M is taken as well.
Ben
--
I touch the fire and it freezes me, [benmorrow@tiscali.co.uk]
I look into it and it's black.
Why can't I feel? My skin should crack and peel---
I want the fire back... Buffy, 'Once More With Feeling'
------------------------------
Date: 17 Aug 2006 09:51:28 GMT
From: anno4000@radom.zrz.tu-berlin.de
Subject: Re: Proposal: extending perldoc -f
Message-Id: <4kish0Fbrn01U1@news.dfncis.de>
Jim Gibson <jgibson@mail.arc.nasa.gov> wrote in comp.lang.perl.misc:
> In article <gbuEg.7390$Ch.5996@clgrps13>, John W. Krahn
> <someone@example.com> wrote:
>
> > Jim Gibson wrote:
> > >
> > > Why not dispense with the option altogether? Why shouldn't I be able to
> > > type:
> > >
> > > perldoc grep
> > > perldoc while
> > > perldoc strict
> > > perldoc CGI
> > >
> > > and get the appropriate section. Are there any duplicates between
> > > keywords, built-in functions, and modules?
> >
> > Off the top of my head, 'if' keyword and 'if.pm' module.
>
> A quick scan of the table of contents of the Camel book reveals the
> open.pm module as well. So, only two non-unique identifiers so far.
Another one is "sort".
Anno
------------------------------
Date: Thu, 17 Aug 2006 12:50:11 -0500
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: Pulling data based on date time returns error
Message-Id: <44e4ac8f$0$3568$815e3792@news.qwest.net>
devon_banks@comcast.net wrote:
> xhoster@gmail.com wrote:
>> devon_banks@comcast.net wrote:
>>> Data is stored in MySQL as '2006-07-14 13:44:13'
>>>
>>> Select Result from DataListing where
>>> InputDate = "2006-07-14 13:44:13"
>>> having count(*) > 1;
>>>
> This should have been:
> Select Result,count(*) from DataListing where
> InputDate = "2006-07-14 13:44:13"
> group by Result
> having count(*) > 1;
> I finally fixed the problem
> by putting
> $SQL = "Select Result,count(*) from DataListing where
> InputDate = "2006-07-14 13:44:13"
> group by Result
> having count(*) > 1";
Really?? That doesn't even compile.
my $SQL = q {
Select Result,count(*)
from DataListing
where InputDate = "2006-07-14 13:44:13"
group by Result
having count(*) > 1
};
You'd be much better off using placeholders. e.g.
my $date = '2006-07-14 13:44:13';
my $SQL = q {
Select Result,count(*)
from DataListing
where InputDate = ?
group by Result
having count(*) > 1
};
my $sth = $dbh->prepare( $SQL );
$sth->execute( $date );
------------------------------
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 9617
***************************************