[13008] in Perl-Users-Digest
Perl-Users Digest, Issue: 418 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Aug 8 04:06:10 1999
Date: Sun, 8 Aug 1999 01:05: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 Sun, 8 Aug 1999 Volume: 9 Number: 418
Today's topics:
Re: Anyone know how to use perl to parse data and gener <erict@cc.wwu.edu>
Re: Checking if an URL is true or false ? (I R A Darth Aggie)
Re: Checking if an URL is true or false ? (brian d foy)
Re: Checking if an URL is true or false ? <bruno.baguette@francemel.com>
Re: Congressional Actions threatens programmer pay rate (Joseph Hertzlinger)
Re: Nastiness contrary to the spirit of perl? (Matt)
Re: Nastiness contrary to the spirit of perl? (Matt)
Re: Nastiness contrary to the spirit of perl? (J. Moreno)
Re: Need Help - Connecting to HTTP (Bill Moseley)
Re: Need Help - Connecting to HTTP <master@openendon.com>
Re: Need Help - Connecting to HTTP (brian d foy)
Re: Nicer Way <aqumsieh@matrox.com>
Re: Nicer Way <uri@sysarch.com>
Re: Nicer Way (Abigail)
Re: Nicer Way (Abigail)
Re: Opinions on ActiveState PerlEx ? (Matt)
Re: Renaming a hash key ? (Randal L. Schwartz)
Re: Renaming a hash key ? (Abigail)
Re: Why is it.... (Chris Fedde)
Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 07 Aug 1999 21:18:55 -0700
From: Eric Turner <erict@cc.wwu.edu>
Subject: Re: Anyone know how to use perl to parse data and generate excel reports automatically?
Message-Id: <37AD052F.7D44D8F6@cc.wwu.edu>
David Cassell wrote:
>
> Now don't you feel silly for saying something which the FAQs
> directly contradict? :-)
Not at all! I went to www.cpan.org and clicked on all FAQs. I didn't see
one specifically for ActiveState Perl, so I chose the "Perl for Win32
FAQ" and received a "document not found" error message. You can't say I
didn't try...
Erc
------------------------------
Date: 8 Aug 1999 04:02:43 GMT
From: fl_aggie@thepentagon.com (I R A Darth Aggie)
Subject: Re: Checking if an URL is true or false ?
Message-Id: <slrn7qq0f8.d1g.fl_aggie@thepentagon.com>
On Sat, 07 Aug 1999 21:05:41 GMT, Bruno Baguette
<bruno.baguette@francemel.com>, in <7oi730$h23$1@nnrp1.deja.com>
wrote:
+ I would like to check if an URL is true or false.
Sounds like you want a link verifier. You may want to look at
<url:http://www.stonehenge.com/> and search around for Randal's
link verifier.
James
------------------------------
Date: Sun, 08 Aug 1999 01:56:28 -0400
From: brian@pm.org (brian d foy)
Subject: Re: Checking if an URL is true or false ?
Message-Id: <brian-ya02408000R0808990156280001@news.panix.com>
In article <MPG.121667b32b3cd29198968f@nntp1.ba.best.com>, moseley@best.com (Bill Moseley) posted:
> >
> > Bruno Baguette <bruno.baguette@francemel.com> wrote in message
> > > I would like to check if an URL is true or false.
> >
> Trond Michelsen (mike@crusaders.no) seems to say...
> > perldoc LWP
>
> Be warned that not all servers respond correctly to a HEAD
> request. If a HEAD request fails, then try GET.
most noteable in this regard is Netscape's Enterprise Server. it
returns 404 in certain HEAD requests when the document is actually
there. try it with www.lycos.com to see what i mean.
my link verifier is preety ugly nowadays due to server and site
wierdness like this. lots of if()s.
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
Perl Monger Hats! <URL:http://www.pm.org/clothing.shtml>
------------------------------
Date: Sun, 08 Aug 1999 07:46:41 GMT
From: Bruno Baguette <bruno.baguette@francemel.com>
To: mike@crusaders.no
Subject: Re: Checking if an URL is true or false ?
Message-Id: <7ojcl0$9ti$1@nnrp1.deja.com>
> What do you intend to do? Do you have a list of URLs
> that you just want to check periodically if still
> are valid, or do you intend to download the
> contents of all those URLs?
No, i'm currently building a search engine for websites
about deafness and i would like to check, like AltaVista, if
a URL submitted by a visitor is true or false...
----------------------------------------------
Bruno Baguette <bruno.baguette@francemel.com>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: 8 Aug 1999 06:37:40 GMT
From: jhertzli@ix.netcom.com (Joseph Hertzlinger)
Subject: Re: Congressional Actions threatens programmer pay rates encore
Message-Id: <7oj8jk$34l@dfw-ixnews7.ix.netcom.com>
On Fri, 6 Aug 1999 00:31:00 -0400, Walker Rowe <limit_h1b_visas@yahoo.com>
wrote:
>Do you want to write code for $15 per hour?
Is this a help-wanted ad?
>That might be your future if
>you do not lobby Congress regarding yet another expansion of the H1B visa
>law. As you know last year Congress increased the number of H1B visas so
>that 135,000 foreign computer programmers could come to the United States.
>In previous years that program was limited to 65,000 people. But the
>135,000 programmer cap was reached in the first five months of this year, so
>Silicon Valley is clamoring for more.
Are you advocating government regulations?
>It stymies the mind why even liberal, pro-labor members of Congress, like
>Senator Barbara McCulsky, would embrace this threat to our livelihoods.
Liberals have a self-image of themselves as anti-authoritarian.
Sometimes they follow through on that.
>The last time I wrote about this pocket money issue, hundreds of smug
>Europeans and contract programming Asians flamed me with hate mail.
Nothing from libertarians?
>To my European friends I would say why don't you improve your own economy
>and quit doffing off ours?
Why do you want to imitate them with anti-capitalist regulations?
>To help frame this debate, the American reader of this letter needs some
>historical perspective of India and the Indian diaspora. During the 1970
>while the United States fought a proxy war with the Russians in Afghanistan
>Indian was a Soviet ally. The Indian economy was and in many ways today
>remains officially socialist. Coca-Cola could not even sell their products
>there. You could buy a Coke in Katmandu but in India they had to slap a
>non-American label on their product lest they offend the local soda pop
>bottler.
Are you claiming we must restrict immigration from socialist countries?
That would have kept Ayn Rand out.
>East African and Fiji Island have log been overrun by Indians. Kenya was so
>thoroughly disgusted by their presence that they kicked out the entire
>Indian population in the 1970s.
That sounds familiar somehow ...
>If you want to know what the English thought of the Indians during the
>British Raj then you should read George Orwell's "Burmese Days".
Will this thread be renamed "900 QUOTES FAMOUS MEN HAVE SAID ABOUT !ND!@NS"?
>So to you European and Indian programmers I say stay over their and brighten
>up your own economy by embracing the ideas of Margaret Thatcher and Ronald
>Reagan style capitalism.
I think that should include deregulating labor markets.
ObPerl: It is especially inappropriate to post this rant advocating that
America should abandon the tradition of being a nation of immigrants on a
newsgroup dedicated to a computer language which consists of ideas that
have immigrated from other computer languages. (That was far-fetched,
wasn't it?)
------------------------------
Date: Sun, 08 Aug 1999 06:13:27 GMT
From: mck@iag.net (Matt)
Subject: Re: Nastiness contrary to the spirit of perl?
Message-Id: <37af1583.1957865@news.iag.net>
On 6 Aug 1999 20:53:25 GMT, fl_aggie@thepentagon.com (I R A Darth
Aggie) wrote:
>On Fri, 06 Aug 1999 17:34:01 GMT, dont_jump@on_me.com <dont_jump@on_me.com>, in
><37b619b3.12377768@news.iag.net> wrote:
>
>+ disagreements, I am simply keeping the comments in usenet - not in my
>+ e-mail box.
>
>If you're going to go with fake addresses, you should really use a
>fake domain. I could go out today and reserve the on_me.com domain,
>as Network Solutions claims it isn't taken. One recommendation I've
>seen is to add .invalid to the end.
>
>It isn't as if the determined or enterprising can't track down your
>in-box...and if your worried about that one or two bad apples, well,
>you're a day late and dollar short...
>
>+ All of the aliases I have used in these posts are obvious inventions
>
>Multiple aliases? is that due to "lighthearted" fun, or an attempt to
>evade killfiles? To coin a phrase: that simply isn't cricket.
Simple levity, nothing more. Killfiles were not a concern. Personally,
I have no need for a killfile, and thus did not have much interest in
other's.
Unfortunately, I had never encountered a newsgroup filled with such
hostility and intolerance until I began using Perl just a couple of
weeks ago, and should have been more aware I was steping into a
minefield. I am sure that this is not the only, or most, hostile group
on usenet, but it is by far the most hyper-critical one I currently
have an interest in.
Note from the headers that I have lost my "sense of humor". Another
reply to this thread segment is the reason.
------------------------------
Date: Sun, 08 Aug 1999 06:13:29 GMT
From: mck@iag.net (Matt)
Subject: Re: Nastiness contrary to the spirit of perl?
Message-Id: <37b0161b.2109192@news.iag.net>
On 7 Aug 1999 09:57:25 -0700, Tom Christiansen <tchrist@mox.perl.com>
wrote:
>The cretin has earned a new killfile entry:
>
> /\biag\.net/HMessage-ID:j
>
>Pity I have to throw all the apples out due to one bad one. But I shall
>not suffer illegal and unaccountable messages to grace my screen.
Nice. I would have expected more from a respected member of the Perl
community, and a respected author. I am actually flabbergasted by the
tone you take above. I look at the two books sitting beside my console
with your name on the cover, and compare value I have found in those
words, to statements like this. And they do not match up. I say with
no malice that you damage your image, with some of us, through this
type of dialog. Perhaps you do not care. Perhaps you feel you have
earned the right to look down on others.
I have just read two articles, which describes the "Perl Community",
in a positive light. This forum has the best, and worst, that an
online professional community can offer. All of my comments on the
original subject of this thread have been an suggestions to improve
this group. Perhaps my posts contain useless material, but I cannot
see how they warrant a personal attack, as I have not suggested that
the Perl language, or it's experts that frequent here are, anything
but quality material. I come away from this dialog believing that the
subject header is completely true.
Cretin? I believe you have too little knowledge of me to make such an
assumption. I would not assume to make such a judgement on someone
with such public exposure as yourself. Even if you find my actions
distasteful (although, I cannot believe anyone could, reasonably), why
would you killfile an entire ISP?
Bad apple? Even if it has been stated before, I would like to know
your definition. Perhaps (or not) you would be interested in knowing
what I have done to support the language that everyone here is
interested in using:
1) After only a few weeks of research and use, I have been supporting
the use of Perl, within my company and too my colleagues, because it
has shown me the advantage of going back to concise and
straightforward tools. My sphere of influence only includes Windows
developers, but I have found this distinctly non-Microsoft technology
to be VERY useful. It has enabled me to accomplish many web and
non-web tasks with a higher degree of efficiency than I ever
experienced using Visual Basic.
2) I have also had the opportunity, and pleasure, to assist a major
software vendor with a Win32 port of a DBD module. While my work was
only involved in the make process, I take a little pride in doing my
part to enhance the usage of Perl in the Windows world.
Now, I am sure that this will not impress any of you "experts." I am a
"newbie" in Perl, but I am well versed in many other technologies. I
just can't for the life of me get over the eliteist intolerance that I
am experiencing here. I have never experienced this type of venom,
even among the Microsoft zealots.
I was content to stay on the sidelines, anonymously, until I felt I
was attacked by one of the leaders of this community, for supporting
his cause, even if not directly. I compare this situation, to being
personally ridiculed for participating in a Visual Basic forum by Bill
Gates himself. I would not be quiet in that case either.
------------------------------
Date: Sun, 8 Aug 1999 02:30:38 -0400
From: planb@newsreaders.com (J. Moreno)
Subject: Re: Nastiness contrary to the spirit of perl?
Message-Id: <1dw746v.irehoo1kdrynuN@roxboro0-0021.dyn.interpath.net>
Darrell Stec <darstec@aol.com> wrote:
> fl_aggie@thepentagon.com (I R A Darth Aggie) writes:
>
> >
> >Darrell Stec <darstec@aol.com>, in
> >
> >+ I don't think there were ever "real" standards on the Internet.
> >
> >Oh, yes there are. Speaking of which, as a matter of nettiquette,
> >could you trim your line folding to about 72 or so characters? thanks.
>
> No, I can't and neither can some 20 million or so members of AOL. Now if you
> would like to talk to Steve Case about it..........
You can't set it to 72, but there is something so that it normally wraps
at 74...(not in the display of course, but when sending).
-snip-
> You just said "I don't think I've seen anyone post like this and get
> flamed for it:
> I read the documentation, but I just don't get it." That refers to
> those who obviously state that they read the documentation. I repeat, how
> do you know that they are ignoring the documention instead of just not
> understanding it. You are making a very large assumption here, just
> because they may not mention that they tried to find something in the
> documentation or didn't understand it.
Doesn't matter -- they deserve to be lumped in with the clueless.
Until the psychic.pm module is fully functioning, the only assumption
that makes since (without it being explicitly stated otherwise) is that
someone that has a real basic question hasn't read the relevant docs.
Because it's impossible to give an answer that assumes that they read
the docs but didn't understand them for some reasons -- if they've read
the docs but for some reason neglect to mention that fact, there's no
way to even begin to guess /what/ in the documentation is causing the
confusing.
-snip-
> it is difficult to understand that MOV means "MOVe", SUB means "SUBtract",
> CMP means "CoMPare", and JL means "Jump if Less than". And that is so
> much more difficult to understand with abbreviations so close to their
> real words, than something as terse and cryptic like: if
> m/^\w+(?=\s+Nasty)/
It's a lot easier than reading and understanding what the equivalent
assembly would look like.
> > $year="20$year";
> >}
> >
> >It is to say the least a most unique Y2K bug they've introduced. It is
> >left to the reader to discover *why* that code is WRONG WRONG WRONG.
Frankly I've seen it before -- in this group as an example of what not
to do; a couple of years ago.
> And the only ones that would have been aware of that, are the blessed holy
> order of the RTFMers? So THEY had to answer and no one else?
No, but you'd have had to have read some manual on localtime (either
from perl or from C or elsewhere) to see that it is wrong at first
glance. The problem with that is that someone who hasn't read that part
of the manual may choose NOT to read the manual based upon a false
understanding of what is supposed to happen.
So when someone post such utter stupidity the only proper response is to
flame the hell out of them, in the hopes that (1) they won't do it
again, (2) the non-clueless newbie will read it and RTFM, and (3) as a
warning to other morons that they should be more careful when posting or
they too will go through life extra crispy.
--
John Moreno
------------------------------
Date: Sat, 7 Aug 1999 20:08:40 -0700
From: moseley@best.com (Bill Moseley)
Subject: Re: Need Help - Connecting to HTTP
Message-Id: <MPG.1216948fa949ab1e989690@nntp1.ba.best.com>
Jordan DeLozier (master@openendon.com) seems to say...
> Hello,
> How could I make a script connect to a site and see if a file is
> there or a 404 error? I understand how to use IO::Socket and have made a
> mini-spider that retrieves Meta Tags, but is a very slow process and
> doesn't detect 404 errors or any erros. I don't want to use LWP modules
> though.
Why not?
--
Bill Moseley mailto:moseley@best.com
pls note the one line sig, not counting this one.
------------------------------
Date: Sun, 08 Aug 1999 03:36:39 GMT
From: Jordan DeLozier <master@openendon.com>
Subject: Re: Need Help - Connecting to HTTP
Message-Id: <37ACFDE7.C4EE9F60@openendon.com>
--------------ED4AFEA1B7A137151DCFB992
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Bill Moseley wrote:
> Jordan DeLozier (master@openendon.com) seems to say...
> > Hello,
> > How could I make a script connect to a site and see if a file is
> > there or a 404 error? I understand how to use IO::Socket and have made a
> > mini-spider that retrieves Meta Tags, but is a very slow process and
> > doesn't detect 404 errors or any erros. I don't want to use LWP modules
> > though.
>
> Why not?
>
> --
> Bill Moseley mailto:moseley@best.com
> pls note the one line sig, not counting this one.
I do not think my server has them, and besides that, I don't know how to use
it.
--
*************************
Openendon Top Sites
http://www.openendon.com
Top Sites Listing
*************************
--------------ED4AFEA1B7A137151DCFB992
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Bill Moseley wrote:
<blockquote TYPE=CITE>Jordan DeLozier (master@openendon.com) seems to say...
<br>> Hello,
<br>> How could I make
a script connect to a site and see if a file is
<br>> there or a 404 error? I understand how to use IO::Socket and have
made a
<br>> mini-spider that retrieves Meta Tags, but is a very slow process
and
<br>> doesn't detect 404 errors or any erros. I don't want to use
LWP modules
<br>> though.
<p>Why not?
<p>--
<br>Bill Moseley <a href="mailto:moseley@best.com">mailto:moseley@best.com</a>
<br>pls note the one line sig, not counting this one.</blockquote>
<p><br>I do not think my server has them, and besides that, I don't
know how to use it.
<pre>--
*************************
Openendon Top Sites
<A HREF="http://www.openendon.com">http://www.openendon.com</A>
Top Sites Listing
*************************</pre>
</html>
--------------ED4AFEA1B7A137151DCFB992--
------------------------------
Date: Sun, 08 Aug 1999 01:52:58 -0400
From: brian@pm.org (brian d foy)
Subject: Re: Need Help - Connecting to HTTP
Message-Id: <brian-ya02408000R0808990152580001@news.panix.com>
In article <37ACFDE7.C4EE9F60@openendon.com>, Jordan DeLozier <master@openendon.com> posted:
> Bill Moseley wrote:
>
> > Jordan DeLozier (master@openendon.com) seems to say...
> > > doesn't detect 404 errors or any erros. I don't want to use LWP modules
> > > though.
> >
> > Why not?
> I do not think my server has them, and besides that, I don't know how to use
> it.
with that logic: you don't know how to do this task, so why do it?
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
Perl Monger Hats! <URL:http://www.pm.org/clothing.shtml>
------------------------------
Date: Sat, 7 Aug 1999 22:32:31 -0400
From: Ala Qumsieh <aqumsieh@matrox.com>
Subject: Re: Nicer Way
Message-Id: <x3yk8r757eo.fsf@tigre.matrox.com>
"Scott Beck" <admin@gatewaysolutions.net> writes:
> #!/usr/bin/perl
Even in simple code, I suggest you add a '-w' at the end of the above
line.
> %ch=(r=>4,
> w=>2,
> x=>1,
> k=>0
> );
> $chmod="rwxr-xr-x";
> $chmod =~ s/\-/k/g;
The above line can be changed into a faster form:
$chmod =~ tr/-/k/;
> $chmod =~
> s/(.)(.)(.)(.)(.)(.)(.)(.)(.)/$ch{$1}+$ch{$2}+$ch{$3}.$ch{$4}+$ch{$5}+$ch{$6
> }.$ch{$7}+$ch{$8}+$ch{$9}/e; #note: this is one long line!
How about:
$chmod =~ s/(.)/$ch{$1}/g;
You don't need the /e modifier.
HTH,
Ala
------------------------------
Date: 08 Aug 1999 01:24:38 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Nicer Way
Message-Id: <x7d7wyg7zd.fsf@home.sysarch.com>
>>>>> "AQ" == Ala Qumsieh <aqumsieh@matrox.com> writes:
AQ> "Scott Beck" <admin@gatewaysolutions.net> writes:
>> s/(.)(.)(.)(.)(.)(.)(.)(.)(.)/$ch{$1}+$ch{$2}+$ch{$3}.$ch{$4}+$ch{$5}+$ch{$6
>> }.$ch{$7}+$ch{$8}+$ch{$9}/e; #note: this is one long line!
AQ> How about:
AQ> $chmod =~ s/(.)/$ch{$1}/g;
you fell for his trap. look closer at the original regex. it is doing 2
things that need the /e
uri
--
Uri Guttman ----------------- SYStems ARCHitecture and Software Engineering
uri@sysarch.com --------------------------- Perl, Internet, UNIX Consulting
Have Perl, Will Travel ----------------------------- http://www.sysarch.com
The Best Search Engine on the Net ------------- http://www.northernlight.com
"F**king Windows 98", said the general in South Park before shooting Bill.
------------------------------
Date: 8 Aug 1999 02:12:14 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Nicer Way
Message-Id: <slrn7qqbe1.1qe.abigail@alexandra.delanet.com>
Ala Qumsieh (aqumsieh@matrox.com) wrote on MMCLXVIII September MCMXCIII
in <URL:news:x3yk8r757eo.fsf@tigre.matrox.com>:
??
?? "Scott Beck" <admin@gatewaysolutions.net> writes:
??
?? > $chmod =~
?? > s/(.)(.)(.)(.)(.)(.)(.)(.)(.)/$ch{$1}+$ch{$2}+$ch{$3}.$ch{$4}+$ch{$5}+$ch{$
?? > }.$ch{$7}+$ch{$8}+$ch{$9}/e; #note: this is one long line!
??
?? How about:
??
?? $chmod =~ s/(.)/$ch{$1}/g;
??
?? You don't need the /e modifier.
Well, yeah, you don't need the /e modifier. But your suggestion is far
from correct. Did you try to see what happens?
Here's yet another solution:
%chmod = do {my $i; map {$_ => $i ++} qw /--- --x -w- -wx r-- r-x rw- rwx/};
$chmod =~ s/(...)/$chmod{$1}/g;
Abigail
--
$" = "/"; split $, => eval join "+" => 1 .. 7;
*{"@_"} = sub {foreach (sort keys %_) {print "$_ $_{$_} "}};
%{"@_"} = %_ = (Just => another => Perl => Hacker); &{%{%_}};
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 8 Aug 1999 02:14:18 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Nicer Way
Message-Id: <slrn7qqbhs.1qe.abigail@alexandra.delanet.com>
Uri Guttman (uri@sysarch.com) wrote on MMCLXVIII September MCMXCIII in
<URL:news:x7d7wyg7zd.fsf@home.sysarch.com>:
!! >>>>> "AQ" == Ala Qumsieh <aqumsieh@matrox.com> writes:
!!
!! AQ> "Scott Beck" <admin@gatewaysolutions.net> writes:
!!
!! >> s/(.)(.)(.)(.)(.)(.)(.)(.)(.)/$ch{$1}+$ch{$2}+$ch{$3}.$ch{$4}+$ch{$5}+$ch{$6
!! >> }.$ch{$7}+$ch{$8}+$ch{$9}/e; #note: this is one long line!
!!
!! AQ> How about:
!!
!! AQ> $chmod =~ s/(.)/$ch{$1}/g;
!!
!! you fell for his trap. look closer at the original regex. it is doing 2
!! things that need the /e
Well, one of the things could have been done with /g:
s/(.)(.)(.)/$ch{$1}+$ch{$2}+$ch{$3}/eg;
But I think someone already mentioned that.
Abigail
--
sub f{sprintf'%c%s',$_[0],$_[1]}print f(74,f(117,f(115,f(116,f(32,f(97,
f(110,f(111,f(116,f(104,f(0x65,f(114,f(32,f(80,f(101,f(114,f(0x6c,f(32,
f(0x48,f(97,f(99,f(107,f(101,f(114,f(10,q ff)))))))))))))))))))))))))
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Sun, 08 Aug 1999 05:09:27 GMT
From: mck@iag.net (Matt)
Subject: Re: Opinions on ActiveState PerlEx ?
Message-Id: <37ad1075.663423@news.iag.net>
On Fri, 06 Aug 1999 17:24:24 -0700, David Cassell
<cassell@mail.cor.epa.gov> wrote:
>Matt wrote:
>>
>> For some intranet needs I am considering using ActiveState Perl on one
>> of our NT boxes. With this one language, it would appear that I can
>> embed PerlScript in ASP for dynamic pages, and use external routines
>> through CGI for other functionality.
>>
>> I like the 'one language fits all' concept for this project, as I need
>> to keep it simple and clean. However, a simple test, using an ASP page
>> to return 300 records into an HTML table is showing PerlScript running
>> about 1/3 the speed of VBScript. This type of performance is not the
>> primary concern, but I will take speed where I can get it.
>
>Reasonable. But are the scripts and environments actually equivalent?
>I've seen that one can write slow code in *any* language. :-)
Very similar, I kept the test very simple to make it easy to use the
same process for each language. Of course, what my tests do not show,
is where more work is done in VBs, due to it's weaknesses.
------------------------------
Date: 07 Aug 1999 21:53:42 -0700
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: Renaming a hash key ?
Message-Id: <m1zp02q3e1.fsf@halfdome.holdit.com>
>>>>> "Abigail" == Abigail <abigail@delanet.com> writes:
Abigail> There's one caveate. If %hash is tied, delete doesn't
Abigail> necessarely return the old value, according to the
Abigail> manual. (Why is that??)
Because the DELETE method can return whatever it wants. Invoking
a delete on a tied hash element could even invoke "nethack".
Conforming tied hash DELETE methods would be wise to return the old
value, just to keep from burning people that don't read every
legalistic point in the online docs.
sub DELETE{"Just another Perl hacker,"}sub TIEHASH{bless\[]}tie%x,main;print delete$x{0};
--
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: 8 Aug 1999 02:01:37 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Renaming a hash key ?
Message-Id: <slrn7qqaq4.1qe.abigail@alexandra.delanet.com>
Randal L. Schwartz (merlyn@stonehenge.com) wrote on MMCLXVIII September
MCMXCIII in <URL:news:m1zp02q3e1.fsf@halfdome.holdit.com>:
%% >>>>> "Abigail" == Abigail <abigail@delanet.com> writes:
%%
%% Abigail> There's one caveate. If %hash is tied, delete doesn't
%% Abigail> necessarely return the old value, according to the
%% Abigail> manual. (Why is that??)
%%
%% Because the DELETE method can return whatever it wants. Invoking
%% a delete on a tied hash element could even invoke "nethack".
Oh yeah. Of course. Just the fact that it's explicitely mentioned on the
delete entry, but not on exists, or on push or splice for tied arrays
throw me off, wondering if there would be something special going on -
other than user defined behaviour.
Abigail
--
perl -e '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %;
BEGIN {% % = ($ _ = " " => print "Just Another Perl Hacker\n")}'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Sun, 08 Aug 1999 05:44:03 GMT
From: cfedde@fedde.littleton.co.us (Chris Fedde)
Subject: Re: Why is it....
Message-Id: <DO8r3.5119$Pt1.2023@wormhole.dimensional.com>
In article <37a88c32@cs.colorado.edu>,
Tom Christiansen <tchrist@mox.perl.com> wrote:
>
>--tom
>--
>Lispers are among the best grads of the Sweep-It-Under-Someone-Else's-Carpet
>School of Simulated Simplicity. [Was that sufficiently incendiary? :-)]
> --Larry Wall in <1992Jan10.201804.11926@netlabs.com
I am sorry but I can't help my self...
It seems to me that the code reuse crown once unquestionably owned
by Lisp is now clearly in the hands of the Perl community. CPAN,
the online documentaton, pmtools, the news group, and the passion
of the perl porters community have all conspired to acheive what
accedemic and commercial language perveyers have been striving for
over these past many decades. A simple, universal and nearly
complete software componenent archetecture.
Thank You
------------------------------
Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 1 Jul 99)
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.misc (and this Digest), send your
article to perl-users@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.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
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 V9 Issue 418
*************************************