[23138] in Perl-Users-Digest
Perl-Users Digest, Issue: 5359 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Aug 14 14:10:56 2003
Date: Thu, 14 Aug 2003 11:10:21 -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, 14 Aug 2003 Volume: 10 Number: 5359
Today's topics:
Re: Help w/ BNB Survey Script <-- (Tad McClellan)
Re: Help w/ BNB Survey Script <-- <uri@stemsystems.com>
Re: Help w/ BNB Survey Script <-- <cwilbur@mithril.chromatico.net>
Re: Help w/ BNB Survey Script <-- (Lori Fleetwood)
Re: Help w/ BNB Survey Script <-- <uri@stemsystems.com>
Re: Help w/ BNB Survey Script <-- <noreply@gunnar.cc>
Re: Help w/ BNB Survey Script <-- <noreply@gunnar.cc>
Re: Help w/ BNB Survey Script <-- (Tad McClellan)
how to autovivify a package from a string (David Baird)
Re: how to autovivify a package from a string <usenet@expires082003.tinita.de>
Re: how to autovivify a package from a string <ndronen@io.frii.com>
Re: I need GD for Redhat 9 (Matt DeFoor)
Re: I need GD for Redhat 9 <matthew.garrish@sympatico.ca>
Installation of Perl/Tk on WindowsXP <hansstark165@compuserve.de>
Re: Installation of Perl/Tk on WindowsXP <goodcall__1@hotmail.com>
Newbie Formhandler <not@home.sorry>
Re: Newbie Formhandler <simonis@myself.com>
Re: Newbie question !! (Tad McClellan)
Re: please critique...random link generator <scripts_you-know-the-drill_@hudsonscripting.com>
Re: Problem using Benchmark (Chris Charley)
Problem with Net::AIM or Net::AOLIM through a firewall <mfender9@mac.om>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 14 Aug 2003 07:50:53 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Help w/ BNB Survey Script <--
Message-Id: <slrnbjn1dd.748.tadmc@magna.augustmail.com>
Gunnar Hjalmarsson <noreply@gunnar.cc> wrote:
> 1) Lori and you said in effect that all authors of free scripts are
> morons. That is obviously not true.
That is the problem with "heuristics".
They are only true most of the time, not all of the time.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Thu, 14 Aug 2003 15:00:38 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Help w/ BNB Survey Script <--
Message-Id: <x7n0ec1dyi.fsf@mail.sysarch.com>
>>>>> "GH" == Gunnar Hjalmarsson <noreply@gunnar.cc> writes:
GH> One of my "free scripts" is provided within a SourceForge project.
GH> There are about 65,000 such projects. Are you telling me that
GH> "approximately" all the free software there is crap, and the
GH> developers morons? ;-)
do you realize how many sourceforge projects are dead? we are not even
talking moron authors but abandoned and never to be touched again? so
the number 65k is useless. and even of the live ones, many are not
useful or done only for the author's ego or whatever.
GH> To be honest, I don't get it. I don't get it at all.
you will one day. open source does not imply good quality (hell, neither
does proprietary). each project/product has to be judged on its own
merit.
and the large repositories of perl scripts are generally full of
crap. have you ever actually looked at them? a couple of years ago i
decided i wanted a simple polling script and scanned dozens of free
scripts on several major free sites. not one script didn't make my
stomach turn. there were bugs, badly written code, cut and paste cgi
support, no module use, globals, dumb sub apis, etc. etc. etc.
GH> This is a Usenet group where an open source software (aka Perl) is
GH> discussed. Instead of making such patronizing, generalizing statements
GH> about free scripts and their authors, wouldn't it be much more
GH> appropriate to acknowledge the power implied in the spreading of free
GH> software, and encourage more of the kind?
you don't get it. that has NOTHING to do with the quality of the
code. free NE good. that isn't saying there aren't good free open source
projects. but in the world of free perl scripts, very few are
decent. the nms archive is one set and was written for that reason, to
replace matt's scripts with quality code. i have code reviewed a few of
those and made improvements and i know the people behind the project. i
respect them and the code there. they maintain it, respond to feedback
and support the scripts. that makes for good code. (almost) none of the
myriad other free perl scripts do that. it is called being professional
and not a script kiddie.
GH> Don't let your justified indignation with Matt Wright colour all you
GH> say and do!!
it is way beyond matt. take a look at some of the free script archives
(skipping nms and cpan). pick one topic like i did. scan dozens of
scripts and tell me with a straight face that you think even one is
written well. point me to that code and i will rip it to shreds without
raising a sweat.
GH> I believe that many authors make their software available in the hope
GH> 1) it will be useful for others
that is debatable. if so, why do they not use modules or write good
code? because they aren't trained to do so. untrained people writing
code is not what i call useful to others. one important point about the
script kiddie community (and it is a community separated from the
greater professional perl community). they copy code from each other and
use the same bad coding styles since they all learn perl from other
script kiddies. it is a very nasty viscious little incestual coding
circle they have there.
GH> 2) it will be further developed by others
GH> but _without_ being ready to assist, at least not for free.
that never happens. it never will. either another kiddie will cut and
paste chunks of that code to write their own (which is useless
multiplied) or they won't use it. that is why there are so many variants
of each type of common script. you will open your eye when you see this
in the code itself. seeing dozens of poll scripts was insane. major
chunks (particularly the ORIGINAL bad matt's cgi parsing stuff) are the
same in almost all of them. many haven't been touched in years.
>> it is pretty moronic to throw non-working code out there, or code
>> that is inadequately documented, or code that has bugs that one
>> refuses to fix, or code that is sufficiently confusing that
>> ordinary people have problems using it.
GH> Yes, of course. With whom are you discussing now, btw? Reacting to
GH> a precipitate statement is not equal to advocating all sorts of
GH> bad behaviour.
huh? i am upset with all the kiddie (or moronic) authors who do this all
the time. they are self taught and cause havoc with their buggy code. do
you know spammers search for matt's (or other versions) of formmail on
the web to use as free relays? does that make you feel better about free
scripts?
please grow up and learn that free/open software is a good concept and
plenty of good has come out of it. but also know that those good
projects are done by professionals with training and experience and
brains. most of the free perl scripts were done by high school kids who
learned by reading other bad free scripts. major difference there.
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: Thu, 14 Aug 2003 15:09:45 GMT
From: Charlton Wilbur <cwilbur@mithril.chromatico.net>
Subject: Re: Help w/ BNB Survey Script <--
Message-Id: <8765l0ff7n.fsf@mithril.chromatico.net>
Gunnar Hjalmarsson <noreply@gunnar.cc> writes:
> Eric J. Roode wrote:
> > Gunnar Hjalmarsson <noreply@gunnar.cc> wrote in
> > news:bhfc44$3nbn$1@ID- 184292.news.uni-berlin.de:
> >
> >> 1) Lori and you said in effect that all authors of free scripts
> >> are morons. That is obviously not true.
> > It's true to a first-order approximation.
>
> Even if you turned from _all_ to _approximation_, are you really sure
> of that? I'm certainly not.
I'm not prepared to do a formal study, but based on my experience, I'd
say that the moron percentage is *at least* 90%, and probably more
like 96%-97%. Sturgeon was an optimist.
> One of my "free scripts" is provided within a SourceForge project.
> There are about 65,000 such projects. Are you telling me that
> "approximately" all the free software there is crap, and the
> developers morons? ;-)
How many of those projects are moribund? How many of them have more
than 2 or 3 active developers? How many of them have made it past a
pre-release Alpha state *and admit it*? How many of them do something
useful, and do it reliably?
> This is a Usenet group where an open source software (aka Perl) is
> discussed. Instead of making such patronizing, generalizing
> statements about free scripts and their authors, wouldn't it be much
> more appropriate to acknowledge the power implied in the spreading
> of free software, and encourage more of the kind?
The power in the spreading of free software comes from perhaps
200-300, and certainly no more than 1000, good programmers who are
willing to give their work away. The hype of free software comes from
the millions of people who are using the work of the several hundred
for free, and who seem to think that if they give their work away it
will magically achieve the same level of quality. This doesn't happen
unless they're willing to put a substantial amount of work in it;
Linux is not where it is merely because hundreds of people have the
necessary skills to find the bugs in it, but because Linus and company
test and apply the fixes that come in. Someone who releases free
software into the world without taking this into account -- and that
includes people like Matt Wright and the 'maintainers' of the 60,000+
moribund SourceForge projects -- is a moron.
Charlton
--
cwilbur at chromatico dot net
cwilbur at mac dot com
------------------------------
Date: 14 Aug 2003 08:24:04 -0700
From: deficitschmeficit@yahoo.com (Lori Fleetwood)
Subject: Re: Help w/ BNB Survey Script <--
Message-Id: <94156c98.0308140724.5ee38d12@posting.google.com>
noreply@gunnar.cc (Gunnar Hjalmarsson) wrote in message news:<3fcbff18.0308131711.89ae07e@posting.google.com>...
> Uri Guttman wrote:
> > >>>>> "LF" == Lori Fleetwood writes:
> >
> > LF> don't you mean "ask the moron authors for help"?
> >
> > moron authors is always implied when someone asks for help
> > with free scripts.
>
> Does a question from a user make the script's author a moron?? As a
> Perl hobbyist, I'm providing a couple of free scripts, and I find
> those comments utterly unintelligent.
You missed my point. Uri's pet moron earlier this week was Matt Wright.
> Is programming skill incompatible with a civil manner?
In Uri's case the answer seems to be yes.
------------------------------
Date: Thu, 14 Aug 2003 16:03:20 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Help w/ BNB Survey Script <--
Message-Id: <x7d6f81b1z.fsf@mail.sysarch.com>
>>>>> "LF" == Lori Fleetwood <deficitschmeficit@yahoo.com> writes:
LF> noreply@gunnar.cc (Gunnar Hjalmarsson) wrote in message news:<3fcbff18.0308131711.89ae07e@posting.google.com>...
>> Uri Guttman wrote:
>> > >>>>> "LF" == Lori Fleetwood writes:
>> >
>> > LF> don't you mean "ask the moron authors for help"?
>> >
>> > moron authors is always implied when someone asks for help
>> > with free scripts.
>>
>> Does a question from a user make the script's author a moron?? As a
>> Perl hobbyist, I'm providing a couple of free scripts, and I find
>> those comments utterly unintelligent.
LF> You missed my point. Uri's pet moron earlier this week was Matt Wright.
>> Is programming skill incompatible with a civil manner?
LF> In Uri's case the answer seems to be yes.
then you don't know me. but that is your problem and not mine. :)
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: Thu, 14 Aug 2003 18:39:51 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: Help w/ BNB Survey Script <--
Message-Id: <bhge08$gaec$1@ID-184292.news.uni-berlin.de>
Uri Guttman wrote:
> open source does not imply good quality
I didn't claim that either. But I believe that the average developer
in open source projects at e.g. SF take more responsibility for their
work than those who you refer to as "script kiddies".
> (hell, neither does proprietary). each project/product has to be
> judged on its own merit.
Precisely.
> and the large repositories of perl scripts are generally full of
> crap. have you ever actually looked at them?
Yes, of course I have. And I haven't got too good impression, either.
But I don't live in a world of black and white, so I do think there is
quite a lot of stuff _between_ what you and other Perl 5 purists would
call _good_ scripts, and the scripts that are so poorly written, and
possibly abandoned, that you can fairly consider their authors to be
"morons".
> take a look at some of the free script archives (skipping nms and
> cpan). pick one topic like i did. scan dozens of scripts and tell
> me with a straight face that you think even one is written well.
> point me to that code and i will rip it to shreds without raising a
> sweat.
Okay, I'll remember that offer. :)
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Thu, 14 Aug 2003 18:45:34 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: Help w/ BNB Survey Script <--
Message-Id: <bhgeav$gsdb$1@ID-184292.news.uni-berlin.de>
Lori Fleetwood wrote:
> You missed my point.
Obviously I did. My apologies.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Thu, 14 Aug 2003 12:16:14 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Help w/ BNB Survey Script <--
Message-Id: <slrnbjnguu.7lc.tadmc@magna.augustmail.com>
Lori Fleetwood <deficitschmeficit@yahoo.com> wrote:
> noreply@gunnar.cc (Gunnar Hjalmarsson) wrote in message news:<3fcbff18.0308131711.89ae07e@posting.google.com>...
>> Uri Guttman wrote:
>> > >>>>> "LF" == Lori Fleetwood writes:
>> >
>> > LF> don't you mean "ask the moron authors for help"?
> You missed my point.
Your point, as with all trolls, is to stir up controversy.
As far as I can tell, you have never answered a Perl question here,
but you've jumped in several times to complain about folks that
do answer questions here.
If you do not like it here, then do not come here. Pretty simple.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: 14 Aug 2003 07:24:44 -0700
From: dave@zerofive.co.uk (David Baird)
Subject: how to autovivify a package from a string
Message-Id: <694af498.0308140624.4297a58d@posting.google.com>
Hi,
If I generate the code for an entire package, how can I then use or
require it? I want to autogenerate a bunch of classes for accessing
database tables, reading the structure of the table from the db and
then using that info to construct the class. Using Alzabo to analyse
the db, the code generation part is quite easy, but now I can't figure
out how to autovivify the packages into existence. All I can think of
is to write the code string to a file and then issue a standard 'use',
but is there a more elegant way to do this (i.e. without writing the
thing out to a file)?
Thanks,
David.
------------------------------
Date: 14 Aug 2003 14:33:24 GMT
From: Tina Mueller <usenet@expires082003.tinita.de>
Subject: Re: how to autovivify a package from a string
Message-Id: <bhg6jk$d0om$1@uni-berlin.de>
David Baird <dave@zerofive.co.uk> wrote:
> If I generate the code for an entire package, how can I then use or
> require it? I want to autogenerate a bunch of classes for accessing
> database tables, reading the structure of the table from the db and
> then using that info to construct the class. Using Alzabo to analyse
> the db, the code generation part is quite easy, but now I can't figure
> out how to autovivify the packages into existence. All I can think of
> is to write the code string to a file and then issue a standard 'use',
> but is there a more elegant way to do this (i.e. without writing the
> thing out to a file)?
I don't know what you actually want to do, but maybe you want to
use Class::MethodMaker, Class:Struct or something similar.
if you want to do it by yourself, it's possible to write
methods for packages on the fly by manipulating the symbol
table, and even the ISA-array and things like that.
i recommend "Object Oriented Perl" by Damian Conway.
hth, tina
--
http://www.tinita.de/ \ enter__| |__the___ _ _ ___
http://Movies.tinita.de/ \ / _` / _ \/ _ \ '_(_-< of
http://www.perlquotes.de/ \ \ _,_\ __/\ __/_| /__/ perception
- my mail address expires end of august 2003 -
------------------------------
Date: 14 Aug 2003 14:46:52 GMT
From: Nicholas Dronen <ndronen@io.frii.com>
Subject: Re: how to autovivify a package from a string
Message-Id: <3f3ba0dc$0$200$75868355@news.frii.net>
David Baird <dave@zerofive.co.uk> wrote:
DB> Hi,
DB> If I generate the code for an entire package, how can I then use or
DB> require it? I want to autogenerate a bunch of classes for accessing
DB> database tables, reading the structure of the table from the db and
DB> then using that info to construct the class. Using Alzabo to analyse
DB> the db, the code generation part is quite easy, but now I can't figure
DB> out how to autovivify the packages into existence. All I can think of
DB> is to write the code string to a file and then issue a standard 'use',
DB> but is there a more elegant way to do this (i.e. without writing the
DB> thing out to a file)?
My naive answer is:
#!/usr/bin/perl
use warnings;
use strict;
my $p = <<EOP
package Foo;
sub Bar { "Baz" }
EOP
;
eval $p;
print Foo::Bar(), "\n";
__END__
There might be problems with your approach, but someone else will
have to tell you what they are. :-)
Regards,
Nicholas
--
"Why shouldn't I top-post?" http://www.aglami.com/tpfaq.html
"Meanings are another story." http://www.ifas.org/wa/glossolalia.html
------------------------------
Date: 14 Aug 2003 08:07:16 -0700
From: mattd@myrealbox.com (Matt DeFoor)
Subject: Re: I need GD for Redhat 9
Message-Id: <45c889e4.0308140707.7c35ba92@posting.google.com>
Devdas Bhagat <devdas@users.sourceforge.net> wrote in message news:<slrnbjmpm3.48f.devdas@evita.devdas.geek>...
> On Thu, 07 Aug 2003 12:56:50 +0100, Simon Andrews <simon.andrews@bbsrc.ac.uk>
> poured into the usenet group comp.lang.perl.misc:
> >
> > Jim Rendant wrote:
> >> I downloaded the GD module from CPAN and tried to compile it on redhat 9 and
> >> it fails. Where can I get a pre-compiled version of this module?
> >
> > Don't know about RH9, but I've just managed to get GD installed on RH8,
> > and it was a right pain! The latest perl GD module won't work because
> > the gd-lib version on RH8 (and I think 9) is too old. I managed to
> Right. I did this for RH 7.3:
> Download the RedHat Rawhide GD source rpm.
> rpm --rebuild gd-2.0.12-src.rpm
>
> Install the binary.
> Install XFree86-devel, libpng-devel, libjpeg-devel and freetype-devel and
> gd-devel.
> #perl -MCPAN -e'install GD'
> Works fine for me.
>
The Perl distribution that comes with RH9 is seriously broken. There
is a problem with Config.pm. Compiling most modules won't work. If you
are using RH9, I'd recommend rebuilding Perl from source.
-mattd
------------------------------
Date: Thu, 14 Aug 2003 12:20:47 -0400
From: "Matt Garrish" <matthew.garrish@sympatico.ca>
Subject: Re: I need GD for Redhat 9
Message-Id: <RFO_a.7399$kp4.915230@news20.bellglobal.com>
"Matt DeFoor" <mattd@myrealbox.com> wrote in message
news:45c889e4.0308140707.7c35ba92@posting.google.com...
>
> The Perl distribution that comes with RH9 is seriously broken.
Many things in RH9 seem to be seriously broken. I also couldn't install the
DBD::ODBC driver without first reinstalling Qt from source and then
reinstalling unixODBC. I think they're becoming more interested in charging
for access to RHN than in putting out a working product. Sounds like another
company I know...
Matt
------------------------------
Date: Thu, 14 Aug 2003 16:55:38 +0200
From: Hans <hansstark165@compuserve.de>
Subject: Installation of Perl/Tk on WindowsXP
Message-Id: <3F3BA2EA.1090908@compuserve.de>
Is anyone knowing how I can get and install the Perl/Tk Suite/Modul on
WindowsXP without compiling. I can't find it under Activestate. I have
installed Perl 5.6.1 Activestate on my Computer. I yet only found Tk as
source files not as binaries, and I have no VisualC++ Compiler or make
-- and nmake 1.5 doesn't work without problems.
Now for short: Does anybody know a URL where I can download Tk binairies
for WindowsXP/NT?
Thanks a lot!
------------------------------
Date: Thu, 14 Aug 2003 15:17:22 GMT
From: "Jack D." <goodcall__1@hotmail.com>
Subject: Re: Installation of Perl/Tk on WindowsXP
Message-Id: <6KN_a.64820$tQ2.1820636@news1.telusplanet.net>
"Hans" <hansstark165@compuserve.de> wrote in message
news:3F3BA2EA.1090908@compuserve.de...
> Is anyone knowing how I can get and install the Perl/Tk Suite/Modul on
> WindowsXP without compiling. I can't find it under Activestate. I have
> installed Perl 5.6.1 Activestate on my Computer. I yet only found Tk as
> source files not as binaries, and I have no VisualC++ Compiler or make
> -- and nmake 1.5 doesn't work without problems.
>
> Now for short: Does anybody know a URL where I can download Tk binairies
> for WindowsXP/NT?
Use the perl package manager to install it. Ensure you are have access to the
internet, then..
Start->Run->"cmd"
Type in:
"ppm install Tk" {without the quotes}
Or you can directly download the zipped binaries from:
http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/
..and follow the README file to install using "ppm"
Jack
------------------------------
Date: Thu, 14 Aug 2003 23:27:32 +1000
From: "Greg" <not@home.sorry>
Subject: Newbie Formhandler
Message-Id: <3f3b91ac$0$14562$afc38c87@news.optusnet.com.au>
Hi,
I'm looking for a form handler script that will take what ever is entered in
textbox 1 (there will be multiple textboxes) and use it for a txt filename.
I would also need spaces in the name converted to underscores and if a file
already exists with the same filename is it possible to either see if the
contents are the same or give the new file a 1 or something like that in
front of the filename?. I'm not worried about E-mail, just the txt file and
a thank you page.
Has anyone see this?
--
Greg
------------------------------
Date: Thu, 14 Aug 2003 14:19:01 GMT
From: simonis <simonis@myself.com>
Subject: Re: Newbie Formhandler
Message-Id: <3F3B9A3E.E4BDFF9E@myself.com>
Greg wrote:
>
> Hi,
>
> I'm looking for a form handler script that will take what ever is entered in
> textbox 1 (there will be multiple textboxes) and use it for a txt filename.
> I would also need spaces in the name converted to underscores and if a file
> already exists with the same filename is it possible to either see if the
> contents are the same or give the new file a 1 or something like that in
> front of the filename?. I'm not worried about E-mail, just the txt file and
> a thank you page.
> Has anyone see this?
There are myriad form handlers out there on the Internet, a quick
search of Google would have shown you this.
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=example+form+handler
In the future, do _try_ to do something on your own before you ask
others for help, and you will find more help forthcoming than you
could ever expect.
-Ds
------------------------------
Date: Thu, 14 Aug 2003 08:36:20 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Newbie question !!
Message-Id: <slrnbjn42k.78t.tadmc@magna.augustmail.com>
Mike Flannigan <mikeflan@earthlink.net> wrote:
> Wesley Tam wrote:
>> I'm newbie, I just start to learn perl
Have you seen the Posting Guidelines that are posted here frequently?
> Re: Newbie question !! is not a good subject.
It is worse than "not good".
This subject hit 2 of my (negative) scoring rules, making it "invisible".
% red flag subjects
Score:: -5000
Subject: urgent
Subject: newbie
Subject: please read
Subject: ^looking for
Subject: perl (problem|question)
Subject: perl (script|program) (problem|question)
% foolish subjects
Score:: -9000
Subject: ^perl$
Subject: ^Re: \c[^a-z]*$
Subject: ^help!?$
Subject: ^question!?$
Subject: ^perl question!?$
Subject: (none)
Subject: no subject
Subject: ^$
Subject: !!
Subject: \?\?
Content-Type: multipart/alternative
Content-Type: multipart/mixed
Content-Type: text/html
I have "newbie" scored down, but these ones are scored *up* :
% interesting subjects
Score:: 9000
...
Subject: learning
Subject: beginner
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Thu, 14 Aug 2003 12:42:28 -0700
From: Hudson <scripts_you-know-the-drill_@hudsonscripting.com>
Subject: Re: please critique...random link generator
Message-Id: <afpnjv8ckkd1ipcm1ijhlho0ifc00q3q4s@4ax.com>
Hey...I just wanted to thank everyone for the replies. It is great to
get feedback and try to learn a more compact way of writing code ;-)
------------------------------
Date: 14 Aug 2003 09:05:28 -0700
From: charley@pulsenet.com (Chris Charley)
Subject: Re: Problem using Benchmark
Message-Id: <4f7ed6d.0308140805.6ddf45a0@posting.google.com>
Abigail <abigail@abigail.nl> wrote in message news:<slrnbjmnbs.3s3.abigail@alexandra.abigail.nl>...
> Tassilo v. Parseval (tassilo.parseval@rwth-aachen.de) wrote on MMMDCXXXV
> September MCMXCIII in <URL:news:bhflui$hla$1@nets3.rz.RWTH-Aachen.DE>:
> !! Actually, I'd never use a string for the code to be benchmarked. AFAIK
> !! it does not provide any additional value over code-references (other
> !! than inserting subtle bugs as shown here).
>
>
> I seldomly use code references, as the provide no additional value
> over strings. The drawback of using code references is that calling
> subs is expensive, and they might cost more than the thing you are
> trying to benchmark.
>
>
> Abigail
Thank you both Abigail and Tassilo for your helpful suggestions. When
I first did these tests, I did use code refs, but after reading a
recent post, 'Perl Math Syntax',
http://groups.google.com/groups?q=g:thl1905764643d&dq=&hl=en&lr=&ie=UTF-8&selm=slrnbjf573.q6t.abigail%40alexandra.abigail.nl&rnum=17
the results I saw when using strings instead of sub refs were really
different. I wonder then, when would code refs be the prefered method?
I did try my program with package variables, using 'our' instead of
'my', and did get more reasonable results. I think now I will look at
my tests using code refs and compare them to the tests using strings
instead.
Thanks again
Chris
------------------------------
Date: Thu, 14 Aug 2003 09:26:45 -0700
From: Miles Fender <mfender9@mac.om>
Subject: Problem with Net::AIM or Net::AOLIM through a firewall
Message-Id: <3F3BB845.4BB50CD2@mac.om>
Hi,
I have a perl program that sends off emails when databases go down, and I've
been charged with enhancing it so that it sends AOL Instant Messages too.
I've got hold of Net::AIM and Net::AOLIM from cpan, both of which work
fine from home, they but don't have proxy support. I need my program to run
from the office, where we have a corporate firewall in place, so I need to
use an HTTP proxy to connect to AOL.
I'm not a network programmer, so my knowledge of sockets is next to nothing.
Has anyone ever tried modifying Net::AIM or Net:AOLIM to support this? I
tried taking a look at the proxy implementation in LWP to see if I could pull some
code from there, but I can't really understand what it's doing.
Apologies if this isn't clear - I'm still a beginner at this.
Thanks,
Miles
------------------------------
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.
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 5359
***************************************