[29713] in Perl-Users-Digest
Perl-Users Digest, Issue: 957 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Oct 20 14:09:44 2007
Date: Sat, 20 Oct 2007 11:09:05 -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 Sat, 20 Oct 2007 Volume: 11 Number: 957
Today's topics:
Re: "Can't locate object method "PV" via package "B::SP <ben@morrow.me.uk>
Re: "Can't locate object method "PV" via package "B::SP <socyl@987jk.com.invalid>
[OT] Re: please help optimize sub <m@rtij.nl.invlalid>
[OT] Re: please help optimize sub QoS@domain.invalid
cgi_bin <nick@maproom.co.uk>
Re: cgi_bin <jurgenex@hotmail.com>
Re: Is perl a good candidate for Data Mining <zaxfuuq@invalid.net>
Re: perl standard <zaxfuuq@invalid.net>
Re: perl standard <zaxfuuq@invalid.net>
Re: perl standard <tadmc@seesig.invalid>
Re: perl standard <tadmc@seesig.invalid>
Re: perl standard <RedGrittyBrick@SpamWeary.foo>
Re: perl standard <rvtol+news@isolution.nl>
Re: perl standard <rvtol+news@isolution.nl>
Re: perl standard <bik.mido@tiscalinet.it>
Re: perl standard <bik.mido@tiscalinet.it>
Re: perl standard <bik.mido@tiscalinet.it>
Re: perl standard <bik.mido@tiscalinet.it>
Re: perl standard <bik.mido@tiscalinet.it>
Re: perl standard <uri@stemsystems.com>
Re: perl standard <jurgenex@hotmail.com>
Re: polymorphic regex -- encoding issue <rvtol+news@isolution.nl>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 20 Oct 2007 08:24:21 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: "Can't locate object method "PV" via package "B::SPECIAL""
Message-Id: <52nou4-18c.ln1@osiris.mauzo.dyndns.org>
Quoth kj <socyl@987jk.com.invalid>:
>
> When I try to use B::Lint I get the error
>
> Can't locate object method "PV" via package "B::SPECIAL""
>
> Does anyone know where B::SPECIAL is defined?
It's defined, such as it is, in ext/B/B.{pm,xs} in the perl
distribution. An object of class B::SPECIAL represents one of the magic
internal Perl objects, such as the 'undef' value. It doesn't define a PV
method.
Which version of Perl, and which version of B::Lint, are you using?
There have been several updates to B::Lint recently: it might be worth
upgrading. If that doesn't help, you've found a bug; reduce it to a
*minimal* testcase and report it at rt.cpan.org.
Ben
------------------------------
Date: Sat, 20 Oct 2007 17:02:33 +0000 (UTC)
From: kj <socyl@987jk.com.invalid>
Subject: Re: "Can't locate object method "PV" via package "B::SPECIAL""
Message-Id: <ffdcb9$off$1@reader1.panix.com>
In <52nou4-18c.ln1@osiris.mauzo.dyndns.org> Ben Morrow <ben@morrow.me.uk> writes:
>There have been several updates to B::Lint recently: it might be worth
>upgrading.
Thanks, that was the problem.
kj
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
------------------------------
Date: Sat, 20 Oct 2007 13:44:19 +0200
From: Martijn Lievaart <m@rtij.nl.invlalid>
Subject: [OT] Re: please help optimize sub
Message-Id: <pan.2007.10.20.11.35.32@rtij.nl.invlalid>
On Fri, 19 Oct 2007 21:06:17 +0000, QoS wrote:
> Good idea, I will add this option to NewsSurfer soon. Thanks for helping
> with the development of my newsreader, it has been a tricky program to
> write; and any suggestions for improving it are extreamly valuable to
> me.
Have a look at http://www.xs4all.nl/~js/gnksa/.
M4
------------------------------
Date: Sat, 20 Oct 2007 11:50:58 GMT
From: QoS@domain.invalid
Subject: [OT] Re: please help optimize sub
Message-Id: <CYlSi.310$Qj3.188@trndny01>
Martijn Lievaart <m@rtij.nl.invlalid> wrote in message-id: <pan.2007.10.20.11.35.32@rtij.nl.invlalid>
>
> On Fri, 19 Oct 2007 21:06:17 +0000, QoS wrote:
>
> > Good idea, I will add this option to NewsSurfer soon. Thanks for helping
> > with the development of my newsreader, it has been a tricky program to
> > write; and any suggestions for improving it are extreamly valuable to
> > me.
>
> Have a look at http://www.xs4all.nl/~js/gnksa/.
>
> M4
Pure gold.. Thanks so much!
------------------------------
Date: Sat, 20 Oct 2007 13:13:27 +0100
From: Nick Wedd <nick@maproom.co.uk>
Subject: cgi_bin
Message-Id: <KfwY8iknDfGHFA3B@maproom.demon.co.uk>
When I first wrote Perl cgi scripts to run on web sites, I was told to
put them in a directory called cgi_bin. I did so, assuming either that
the name of the directory was significant, or that the cgi_bin provided
by the web host has some magic property.
As I have written more scripts and used more servers, I have come to
realise that this is not at all necessary. I can put a cgi script
wherever I like, just as I can a .gif file. There is no magic involved.
So why did books and web hosts once encourage the use of a directory
called cgi_bin? Have things changed, or was it always irrelevant where
you kept your cgi scripts?
Nick
--
Nick Wedd nick@maproom.co.uk
------------------------------
Date: Sat, 20 Oct 2007 12:36:25 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: cgi_bin
Message-Id: <dDmSi.802$Y23.226@trndny04>
Nick Wedd wrote:
> When I first wrote Perl cgi scripts to run on web sites, I was told to
> put them in a directory called cgi_bin. I did so, assuming either
> that the name of the directory was significant, or that the cgi_bin
> provided by the web host has some magic property.
>
> As I have written more scripts and used more servers, I have come to
> realise that this is not at all necessary. I can put a cgi script
> wherever I like, just as I can a .gif file. There is no magic
> involved.
> So why did books and web hosts once encourage the use of a directory
> called cgi_bin? Have things changed, or was it always irrelevant
> where you kept your cgi scripts?
This is a question about which webserver you are using, how it is
configured, and best practices for structuring web sites.
It has nothing to do with Perl and you may get much better responses asking
a NG that actually deals with web servers and web sites.
jue
------------------------------
Date: Sat, 20 Oct 2007 04:13:37 -0700
From: "Wade Ward" <zaxfuuq@invalid.net>
Subject: Re: Is perl a good candidate for Data Mining
Message-Id: <E46dncl0FuFQSYTanZ2dnUVZ_t2inZ2d@comcast.com>
<benkasminbullock@gmail.com> wrote in message
news:1192752188.654869.324850@k35g2000prh.googlegroups.com...
> On Oct 18, 10:39 am, Bo Yang <struggl...@gmail.com> wrote:
>> I am wondering is perl a good candidate for Data Mining? I intend to
>> use Perl to analyze tons of data and fetch some useful informatino from
>> them. Does perl designed for this?
>> Thanks in advance!
>
> Apparently biologists use Perl like this.
>
>
Case in point of why biologosts can't save their lives in comp sci.
--
wade ward
"Nicht verzagen, Bruder Grinde fragen."
------------------------------
Date: Sat, 20 Oct 2007 04:18:04 -0700
From: "Wade Ward" <zaxfuuq@invalid.net>
Subject: Re: perl standard
Message-Id: <LaGdndaVBfVFSITanZ2dnUVZ_saknZ2d@comcast.com>
"Michele Dondi" <bik.mido@tiscalinet.it> wrote in message
news:gk3hh3deiqckemuur8lg3k88ag7g982tis@4ax.com...
> On Fri, 19 Oct 2007 02:13:17 -0700, "Wade Ward" <zaxfuuq@invalid.net>
> wrote:
>
>>They is ISO. I would have a hard time believing that the entire body of
>>international standards chose to overlook perl, particularly when I've
>
> perldoc -q ansi
>
> : Found in C:\Programmi\Perl\lib\pod\perlfaq2.pod
> : Is there an ISO or ANSI certified version of Perl?
> : Certainly not. Larry expects that he'll be certified before Perl is.
>
>>already heard the document described.
>
> "Heard"? Somebody told me about "chemical trails", I've already heard
> about them. Thus it must be true...
>
>>perldoc perlhack is a %100 wrong answer.
>
> Huh?!? What's wrong with it?
It's only good enough for the girls I go with. You cats have C as a
back-end, but what's on the front?
Does Fortran, the common C extension, exist for perlers?
--
wade ward
"Nicht verzagen, Bruder Grinde fragen."
------------------------------
Date: Sat, 20 Oct 2007 04:46:40 -0700
From: "Wade Ward" <zaxfuuq@invalid.net>
Subject: Re: perl standard
Message-Id: <P-adnVzP3NoRQYTanZ2dnUVZ_rCtnZ2d@comcast.com>
"RedGrittyBrick" <RedGrittyBrick@SpamWeary.foo> wrote in message
news:3eidnVXm850Pv4TanZ2dneKdnZydnZ2d@bt.com...
> Abigail wrote:
>> _
>> Wade Ward (zaxfuuq@invalid.net) wrote:
>> || When did the Perl Programming come to
>> || exist? We, in the fortran club, know this number well and in two
>> different || ways. We celebrated our 50th birthday last year, but we
>> also have a || diffrent pedigree with the standard. We beginn there at
>> 66. Then there's || 77, 90, 95, 2003, 2008. Does the PPL have a
>> similar list?
>>
>>
>> man perlhist
>>
>
> perldoc perlhist
So, you entrust yourselfes to the finns. That'll be gudenov for daniel
karlevich.
--
wade ward
"Nicht verzagen, Bruder Grinde fragen."
------------------------------
Date: Sat, 20 Oct 2007 11:13:21 GMT
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: perl standard
Message-Id: <slrnfhiknc.t5b.tadmc@tadmc30.sbcglobal.net>
Michele Dondi <bik.mido@tiscalinet.it> wrote:
> On Fri, 19 Oct 2007 17:42:14 GMT, Uri Guttman <uri@stemsystems.com>
> wrote:
>
>>seem to work so who knows!? anyone seen the antiscam commercials
>>(sponsored by the post office!) which show a f2f nigerian style scam and
>>how silly they seem in person?
>
> Occasionally seen some services off a very popular satyrical news
> program of Italian television, in which a fake victim contacts them
> and pretends to be going to give the money...
Google for "scam baiters" for hours of similar fun...
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Sat, 20 Oct 2007 06:24:00 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: perl standard
Message-Id: <slrnfhjpag.7a4.tadmc@tadmc30.sbcglobal.net>
Ben Bullock <benkasminbullock@gmail.com> wrote:
> On Fri, 19 Oct 2007 11:04:49 +0200, Dr.Ruud wrote:
>
>> ... The documentation is an important part of the implementation. So is
>> CPAN, for example all the testcode of the serious modules.
>
> What to do if Perl fails the tests though, or if the documentation and the
> program disagree?
File a bug report of course.
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Sat, 20 Oct 2007 12:50:30 +0100
From: RedGrittyBrick <RedGrittyBrick@SpamWeary.foo>
Subject: Re: perl standard
Message-Id: <5tWdnUkLYt8QdoTanZ2dneKdnZydnZ2d@bt.com>
Ben Bullock wrote:
>
> So Perl is defined by what Larry and others think that people think it
> should do.
Have you read the `perldoc perlhack` that was mentioned earlier?
If not, I commend it to you.
If you have, I don't understand why you'd post this assertion here.
------------------------------
Date: Sat, 20 Oct 2007 14:38:55 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: perl standard
Message-Id: <ffd42h.1q4.1@news.isolution.nl>
Ben Bullock schreef:
> Dr.Ruud:
>> ... The documentation is an important part of the implementation. So
>> is CPAN, for example all the testcode of the serious modules.
>
> What to do if Perl fails the tests though, or if the documentation
> and the program disagree?
Bugs can be anywhere in the implementation. "Perl" is the language,
"perl" is the binary.
The documentation is (supposed to be) equal on all platforms, the binary
"of course" is not.
So a bug can for example be documentation-specific, or
platform/binary-specific.
Bugs can be documented, for example as "known, will not be fixed anytime
soon".
Bugs get fixed all the time. See also perlbug, which BTW doesn't mention
documentation bugs.
So if your 'perl' fails a test, or if the documentation and the program
disagree, please report the bug.
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Sat, 20 Oct 2007 15:07:31 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: perl standard
Message-Id: <ffd5r6.1io.1@news.isolution.nl>
Ben Bullock schreef:
> In other words you're admitting that the language isn't actually
> defined anywhere.
I still don't understand how you define 'language' here. There is
nothing to "admit". The Perl language is just never meant to be defined
in the sense that you seem to be looking for, if I interpret the
background of your question to your liking. :)
Perl is defined by its implementation, and that has proven to work very
well in many ways, and not so well in many other ways.
Remaining backwards compatible (which is another definition in itself),
is both loved and hated by many p5-ers. Back-porting is still actively
done, for early Perl 5 versions, and for many platforms.
See also the Kurila-fork:
http://dev.tty.nl/static/kurila/kurila-1.3_0/pod/kurilaintro.html
Just my EUR 0.02.
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Sat, 20 Oct 2007 15:34:55 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: perl standard
Message-Id: <iv0kh35frtq45e42419prnckmjs0d6t6tv@4ax.com>
On Sat, 20 Oct 2007 00:51:41 +0000 (UTC), Ben Bullock
<benkasminbullock@gmail.com> wrote:
>In other words you're admitting that the language isn't actually defined
>anywhere.
Yep, sort of. So what?
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sat, 20 Oct 2007 15:37:38 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: perl standard
Message-Id: <511kh3hqhn9lcm03v2igptht7eottduhqf@4ax.com>
On Sat, 20 Oct 2007 05:40:02 +0000 (UTC), Ben Bullock
<benkasminbullock@gmail.com> wrote:
>> Amazing, it still works better than anything else I have used.
>
>I agree that it works, but does that necessarily mean we shouldn't ask
>questions about how the language is defined?
No you can just fine. In fact you did, and you were answered, even
though you didn't like the answer. Happens...
>> As uncertainties arise, Larry and
>> others try to agree on what changes are necessary to make the
>> implementation do what people think it should do.
>
>So Perl is defined by what Larry and others think that people think it
>should do.
Do you find that so disserviceable to the community? FWIW my personal
experience is the Larry and others mostly got it right: occasionally
this is not the case, but I can live with it.
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sat, 20 Oct 2007 15:39:58 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: perl standard
Message-Id: <g71kh3hvpjiugufcneuobno3r3ee54j891@4ax.com>
On Fri, 19 Oct 2007 23:03:26 -0700, "Wade Ward" <zaxfuuq@invalid.net>
wrote:
>I'm embarrassed now, because I thought for sure that Perl had been admitted
>to computer languages for grown-ups. Apparently not.
Don't be embarassed: if you feel like abandoning it altogether, then
please don't shy away from your inspiration or you may regret it
later!
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sat, 20 Oct 2007 15:40:35 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: perl standard
Message-Id: <ba1kh3hk6jjt43lr02tjmn0ireu2o8vsq3@4ax.com>
On Fri, 19 Oct 2007 23:03:38 -0700, "Wade Ward" <zaxfuuq@invalid.net>
wrote:
>'man' is not recognized as an internal or external command,
>operable program or batch file.
perldoc
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sat, 20 Oct 2007 15:42:33 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: perl standard
Message-Id: <1d1kh3ljnra2p0g41pis9qpkinboe3f9d5@4ax.com>
On Sat, 20 Oct 2007 04:18:04 -0700, "Wade Ward" <zaxfuuq@invalid.net>
wrote:
>>>perldoc perlhack is a %100 wrong answer.
>>
>> Huh?!? What's wrong with it?
>It's only good enough for the girls I go with. You cats have C as a
>back-end, but what's on the front?
>
>Does Fortran, the common C extension, exist for perlers?
:|
Please somebody wake me up, this must be a Monty Python sketch, ain't
it?!?
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sat, 20 Oct 2007 16:09:45 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: perl standard
Message-Id: <x7bqatlqd2.fsf@mail.sysarch.com>
>>>>> "MD" == Michele Dondi <bik.mido@tiscalinet.it> writes:
MD> On Sat, 20 Oct 2007 04:18:04 -0700, "Wade Ward" <zaxfuuq@invalid.net>
MD> wrote:
>>>> perldoc perlhack is a %100 wrong answer.
>>>
>>> Huh?!? What's wrong with it?
>> It's only good enough for the girls I go with. You cats have C as a
>> back-end, but what's on the front?
>>
>> Does Fortran, the common C extension, exist for perlers?
MD> :|
MD> Please somebody wake me up, this must be a Monty Python sketch, ain't
MD> it?!?
i think wade is reenacting the attack on perl harbor with the ladies
auxillary. (otherwise known as mud wrestling :).
as for wanted a formal ISO/ANSI spec, that is hilarious. has he ever
actually seen one? i worked on compilers with the ANSI PL/I spec and i
still haven't recovered from the loss of brain cells.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
------------------------------
Date: Sat, 20 Oct 2007 17:21:42 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: perl standard
Message-Id: <GOqSi.64$qo2.60@trndny06>
Wade Ward wrote:
> "Jürgen Exner" <jurgenex@hotmail.com> wrote in message
>> Wade Ward wrote:
>>> [...]Does the PPL have a similar list?
>>
>> Well, today the ICAO is responsible for standardizing PPL
>> requirements worldwide [...]
>> But what does this have to do with the subject of this NG?
> everything.
I appologize for my limited imagination, but I don't see any possible
relation between the computer programming language Perl and/or its
implemention on the one side and PPL and the ICAO on the other side. Would
you mind to elaborate, please?
Are you e.g. suggesting that programmers who want to use Perl must have 40
hours of mandatory training by a licensed instructor and pass a written,
oral, and practical test administered by a government official before they
are allowed to use Perl, just like it is required for a PPL?
Or are you e.g. suggesting that Perl programmers must pass a biyearly
medical exam as required for a PPL?
Or are you e.g. suggesting that Perl programmers must pass a biyearly
proficiency test as required for a PPL to be allowed to continue to program
in Perl?
jue
------------------------------
Date: Sat, 20 Oct 2007 15:48:41 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: polymorphic regex -- encoding issue
Message-Id: <ffd81d.vo.1@news.isolution.nl>
Ilya Zakharevich schreef:
> my $w = join '', grep +(decode 'cp1251', $_) =~ /\w/, map chr,
> 0x00..0xFF;
Alternative:
my $w = pack "C*", grep decode('cp1251', chr) =~ /\w/, 0..255;
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
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 V11 Issue 957
**************************************