[9380] in Perl-Users-Digest
Perl-Users Digest, Issue: 2975 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jun 25 06:07:16 1998
Date: Thu, 25 Jun 98 03:00:26 -0700
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, 25 Jun 1998 Volume: 8 Number: 2975
Today's topics:
A kind of TAR with perl (Jean-Paul SALIOU)
Re: A kind of TAR with perl <lth@dannet.dk>
Re: first language - last language <quednauf@nortel.co.uk>
Re: first language (Bart Lateur)
Re: Flames.... (Abigail)
Re: Flames.... (Abigail)
Re: Flames.... (Abigail)
how to read a binary file containing C structures <anallan@siac.com>
Re: LWP::Simple on NT with a proxy / fire wall <davidc@selectst.com>
Re: LWP::Simple on NT with a proxy / fire wall <davidc@selectst.com>
Re: Metrics for C in Perl <quednauf@nortel.co.uk>
Re: multi-thread in Perl? <tchrist@mox.perl.com>
opening a file on other domain <negev@anr.co.il>
RE To do variable type expansion in a string. <shawnf@exabyte.com>
Re: RE To do variable type expansion in a string. <lth@dannet.dk>
Re: Running a Perl/CGI form script from the command lin <lth@dannet.dk>
Re: TIP: How to post good questions <quednauf@nortel.co.uk>
Re: What a Crappy World (oh, yes!) (Abigail)
Re: What a Crappy World (oh, yes!) (Abigail)
Re: What a Crappy World (oh, yes!) (Abigail)
Re: What a Crappy World (oh, yes!) <ajohnson@gpu.srv.ualberta.ca>
Re: What a Crappy World <tchrist@mox.perl.com>
Re: What a Crappy World <ajohnson@gpu.srv.ualberta.ca>
Re: What a Crappy World (Abigail)
Re: What a Crappy World (Abigail)
Re: What a Crappy World (Abigail)
Re: What a Crappy World (Fred Riley)
Re: WIN32::ODBC and use of <msazonov@usa.net>
Re: WIN32::ODBC <msazonov@usa.net>
Re: Would someone tell me what this means? <tchrist@mox.perl.com>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 25 Jun 1998 09:13:07 GMT
From: saliou@bsboulot (Jean-Paul SALIOU)
Subject: A kind of TAR with perl
Message-Id: <6mt4b3$o2i@btmpjg.god.bel.alcatel.be>
Hello,
I'm looking for a script in perl which has the
same effect than the unix tar.
Thanks.
--
Jean-Paul Saliou
Alcatel Telecom - Brest
Tel : 02.98.14.31.82
E-mail : saliou@bst.bsf.alcatel.fr
------------------------------
Date: Thu, 25 Jun 1998 11:31:29 +0100
From: Lars Thegler <lth@dannet.dk>
To: Jean-Paul SALIOU <saliou@bsboulot>
Subject: Re: A kind of TAR with perl
Message-Id: <35922701.AC12839E@dannet.dk>
Jean-Paul SALIOU wrote:
>
> I'm looking for a script in perl which has the
> same effect than the unix tar.
You are looking for the Archive::Tar module:
http://www.perl.com/CPAN/modules/by-module/Archive/
--
Lars Thegler mailto:lth@dannet.dk
Internet Development http://www.dannet.dk
Dan Net A/S phone: +45 45 82 16 00
Blokken 9 - DK-3460 Birkeroed - Denmark fax: +45 45 82 16 44
------------------------------
Date: Thu, 25 Jun 1998 10:38:56 +0100
From: "F.Quednau" <quednauf@nortel.co.uk>
Subject: Re: first language - last language
Message-Id: <35921AB0.6E52C090@nortel.co.uk>
birgitt@my-dejanews.com wrote:
>
> What is the *last* language all you experts would ever want to
> deal with ? Don't say there isn't one.
>
> Who bets with me ? Will the thread be as long from here on
> as it was for *first* language ?
>
> :-)
> Birgitt Funk
Sooo hard to predict the length of threads, 's like those superstrings...Don't
know enough languages, but I could imagine that writing out binary sequences
must be fairly tough....
01100110110100011011100100101011
There's something nice, simplistic about it, though.
--
____________________________________________________________
Frank Quednau
http://www.surrey.ac.uk/~me51fq
________________________________________________
------------------------------
Date: Thu, 25 Jun 1998 08:30:17 GMT
From: bart.mediamind@tornado.be (Bart Lateur)
Subject: Re: first language
Message-Id: <359203a7.2034147@news.tornado.be>
Judson McClendon wrote:
> I can often write
>and run a small utility in BASIC before I could fire up my VC++ or VB compilers and
>begin coding.
VB *is* BASIC. Very similar to QuickBasic, as you describe it.
Bart.
------------------------------
Date: 25 Jun 1998 07:29:37 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Flames....
Message-Id: <6msu91$ja$1@client3.news.psi.net>
John Moreno (phenix@interpath.com) wrote on MDCCLVIII September MCMXCIII
in <URL: news:1db4ypv.2lejgzo3d0lN@roxboro0-044.dyn.interpath.net>:
++ T. Ames <ames0009@tc.umn.edu> wrote:
++
++ > phenix@interpath.com (John Moreno) wrote:
++ >
++ > >That's probably because this isn't a help desk or even a simulation of
++ > >it.
++ > >
++ > This is the biggest myth of all. I know you'd like to think this is a
++ > place where experts can come to pat each other on the back, but that
++ > is simply not the reality of this group. What is a helpdesk? Gee, I
++ > think it is a place where people go to get help. Are you seriously
++ > suggesting that people come here for some other reason? You can call
++ > it "discussing the finer points of perl" or whatever you like, but
++ > that is merely a semantic issue. People come here for help with perl,
++ > from the novice to the expert, and in that sense, Yes, it is a
++ > simulation of a helpdesk.
++
++ I come here looking for interesting problems to solve, but I don't count
++ as "expert" except to people who don't know anything, so I guess I don't
++ count. And of course I'd really like to know what questions Tom C is
++ Randal Schwartz, Abigail, and Tom Phoenix are interested in having
++ answered.
I don't come here to have specific questions answered. But I come here
for two reasons. To help people (but that doesn't mean I want to answers
FAQs - I want to help beyond that) and to see what other answer on
*interesting* questions. It's usually not that I don't know the answer,
but answers from others often give a different viewpoint. After all,
there are always more ways to do it.
Abigail
--
perl5.004 -wMMath::BigInt -e'$^V=new Math::BigInt+qq;$^F$^W783$[$%9889$^F47$|88768$^W596577669$%$^W5$^F3364$[$^W$^F$|838747$[8889739$%$|$^F673$%$^W98$^F76777$=56;;$^U=substr($]=>$|=>5)*(q.25..($^W=@^V))=>do{print+chr$^V%$^U;$^V/=$^U}while$^V!=$^W'
------------------------------
Date: 25 Jun 1998 07:38:11 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Flames....
Message-Id: <6msup3$ja$2@client3.news.psi.net>
Brandon S. Allbery KF8NH (allbery@kf8nh.apk.net) wrote on MDCCLV
September MCMXCIII in <URL: news:6mj4st$941$1@rushlight.kf8nh.apk.net>:
++ Also sprach Lloyd Zusman <ljz@asfast.com> (<lt90mrwlyt.fsf@asfast.com>):
++ +-----
++ | And furthermore, since there are always new people trying out Perl and
++ | coming into the group with FAQ's, I don't see what's wrong with being
++ +--->8
++
++ Not to mention the overworked (print) graphic designers who get websites
++ dumped in their lap by order of the management. (I've seen this happen.)
++ They might learn about Perl by seeing books on display at the local bookstore,
++ or the boss may have said "oh, I hear there's this thing called Perl used for
++ web programming: learn it".
++
++ No doubt to the great dismay of some here, Perl isn't only a geek language
++ any more.
++
And? Even if that happens, that's not a reason for not reading
the documentation and just start asking FAQs in newsgroups.
Abigail
--
perl -MLWP::UserAgent -MHTML::TreeBuilder -MHTML::FormatText -wle'print +(HTML::FormatText -> new -> format (HTML::TreeBuilder -> new -> parse (LWP::UserAgent -> new -> request (HTTP::Request -> new ("GET", "http://work.ucsd.edu:5141/cgi-bin/http_webster?isindex=perl")) -> content)) =~ /(.*\))[-\s]+Addition/s) [0]'
------------------------------
Date: 25 Jun 1998 07:39:32 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Flames....
Message-Id: <6msurk$ja$3@client3.news.psi.net>
Ronald J Kimball (rjk@coos.dartmouth.edu) wrote on MDCCLIX September
MCMXCIII in <URL: news:1db5emh.lc18opaxirgjN@bay2-19.quincy.ziplink.net>:
++ nobody <ac1@fspc.netsys.itg.telecom.com.au> wrote:
++
++ > Are these roman dates correct? I read the following as:
++ > 1754 September 1993.
++ >
++ > The 1754 may be a time of day (rather than the day of month I
++ > expected), but the year is wrong, I beleive (should be
++ > MCMXCVIII ?).
++
++ I think it's time to add this question to the FAQ.
*laugh*
Abigail
--
perl -we '$_ = q ;4a75737420616e6f74686572205065726c204861636b65720as;;
for (s;s;s;s;s;s;s;s;s;s;s;s)
{s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}'
------------------------------
Date: Wed, 24 Jun 1998 10:49:50 -0400
From: Aravind Nallan <anallan@siac.com>
Subject: how to read a binary file containing C structures
Message-Id: <3591120E.11F097BA@siac.com>
Hi,
I have a binary file produced by a C program which contains C structures
written using fwrite. Do we have any way of reading them in perl and
writing out into Ascii?
Thanks
Aravind
------------------------------
Date: Thu, 25 Jun 1998 19:13:54 +1000
From: David Coldrick <davidc@selectst.com>
Subject: Re: LWP::Simple on NT with a proxy / fire wall
Message-Id: <359214D2.1CB84ECB@selectst.com>
Thanks Gisle,
I don't know which version it implies either, but I did look at the code
involved in picking up the proxy values, and it *does* lcase the name returned
from NT before doing anything with it. I assume then that the fact that NT
forces env vars to ucase (which I didn't know before) isn't the problem.
Regards,
David
Gisle Aas wrote:
> David Coldrick <davidc@selectst.com> writes:
>
> > Using GS port of Perl 5.004_02 on NT 4.
>
> I am not sure which version of LWP this implies, but there was a
> change for release 5.22 that might be relevant.
>
> o LWP::Simple now switch to full LWP implementation even for systems
> that force all environment keys to be upper case. Modification
> suggested by Dale Couch <dcouch@training.orl.lmco.com>.
------------------------------
Date: Thu, 25 Jun 1998 19:20:54 +1000
From: David Coldrick <davidc@selectst.com>
Subject: Re: LWP::Simple on NT with a proxy / fire wall
Message-Id: <35921675.A37D68B8@selectst.com>
Jonathan,
Sorry about the vcard - had to rebuild my *&^%$#@ NT system again this week,
and forgot to turn off that default in Netscape.
Jonathan Stowe wrote:
<snip>
> In the LWP::Simple doc it says:
>
> The module will also export the LWP::UserAgent object as `$ua'
> if you ask for it explicitly.
>
> Right you have to do that and then read the LWP::UserAgent
> documentation in order to find out to set the proxy details and do
> that before you do your get.
Well, yes. What you're saying is that the doc is incorrect in stating that
env vars http_proxy etc. are used in LWP::Simple.
> Alternatively you may as well just use LWP::UserAgent from the
> beginning;-}
>
Yep. After I check to see if Simple really doesn't do as documented.
What I'd really like confirmed is that a proxy spec of 'n.n.n.n:80' should
work.
Thanks and regards,
David
------------------------------
Date: Thu, 25 Jun 1998 10:49:24 +0100
From: "F.Quednau" <quednauf@nortel.co.uk>
Subject: Re: Metrics for C in Perl
Message-Id: <35921D24.EBE58B33@nortel.co.uk>
Goncalo F. T. Lages De Carvalho wrote:
>
> --
I agree, yeah, nice one!
------------------------------
Date: 25 Jun 1998 07:36:16 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: multi-thread in Perl?
Message-Id: <6msulg$1j4$3@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
Check out the basic fork call for multitasking.
--tom
--
Emacs is a fine programming language, but I still prefer perl. -me
------------------------------
Date: Thu, 25 Jun 1998 12:15:33 +0300
From: Negev <negev@anr.co.il>
Subject: opening a file on other domain
Message-Id: <35921534.5572DAB1@anr.co.il>
How can i open file for reading on other domain??
I can only open files on my own server, and i even need the real path
(not the domain path) to open it.
I know i can do it cause lots of sites (web site garage, gifwizard, and
ofcourse, all search engine spiders) have done it.
Please this is URGENT!!!
Best Regards
Negev
------------------------------
Date: Tue, 23 Jun 1998 11:09:02 -0600
From: "Shawn M Ferris" <shawnf@exabyte.com>
Subject: RE To do variable type expansion in a string.
Message-Id: <6mondt$beg$1@news.exabyte.com>
Not sure the best way to ask this but here goes..
I'm parsing an ini type configuration file, eg:
[main]
foo=/root/path
[other]
bar=/root/path/dir/file
...
I would like to be able to simplify variable bar by using some sort of
variable expansion on the line, eg:
[main]
foo=/root/path
[other]
bar=%foo/dir/file
bar would then expand to /root/path/dir/file, etc.. Caveat: %foo can only be
defined in [other] or [main]. It will not expand if it's in another group
say [test].
My question is this.. How do I match on %{some_defined_variable}, possibly
multiple times in a given value, and expand it to the real value?
Should this be done at the time of reading the file? When using the
Variable? I think that it would be easier/better at the time of usage in
case the value of foo was later changed.
I am totally at a loss on this one. Any help?
BTW: The file being read is loaded into a hash, eg:
%hash=(
'main' => {
'foo' => '/root/path',
},
'other' => {
'bar' => '%foo/dir/file',
},
);
------------------------------
Date: Thu, 25 Jun 1998 11:26:59 +0100
From: Lars Thegler <lth@dannet.dk>
To: Shawn M Ferris <shawnf@exabyte.com>
Subject: Re: RE To do variable type expansion in a string.
Message-Id: <359225F3.DC735923@dannet.dk>
Shawn M Ferris wrote:
>
> I'm parsing an ini type configuration file, eg:
>
> [main]
> foo=/root/path
I know this doens't directly answer your question, but you really should
be using the IniConf module
http://www.perl.com/CPAN/modules/by-module/IniConf
Afterwards, you can substiture to your heart's content.
--
Lars Thegler mailto:lth@dannet.dk
Internet Development http://www.dannet.dk
Dan Net A/S phone: +45 45 82 16 00
Blokken 9 - DK-3460 Birkeroed - Denmark fax: +45 45 82 16 44
------------------------------
Date: Thu, 25 Jun 1998 10:33:12 +0100
From: Lars Thegler <lth@dannet.dk>
To: Clive McAdam <clive@webhost.co.za>
Subject: Re: Running a Perl/CGI form script from the command line
Message-Id: <35921958.D8242571@dannet.dk>
Clive McAdam wrote:
>
> I have a form processing perl script that writes the form values to a
> file.
> How do I get to run this from the command line so that I can run it like
>
> this:-
>
> ./addnew.cgi name=joe&lastname=soap&email=joe.soap@somewhere.com
>
> All on one line?
You really should be using CGI.pm:
http://www.perl.com/CPAN/modules/by-module/CGI
It makes forms processing so much easier, and additionally will let you
test your scripts from the command line.
--
Lars Thegler mailto:lth@dannet.dk
Internet Development http://www.dannet.dk
Dan Net A/S phone: +45 45 82 16 00
Blokken 9 - DK-3460 Birkeroed - Denmark fax: +45 45 82 16 44
------------------------------
Date: Thu, 25 Jun 1998 10:27:04 +0100
From: "F.Quednau" <quednauf@nortel.co.uk>
Subject: Re: TIP: How to post good questions
Message-Id: <359217E8.5E2B004F@nortel.co.uk>
birgitt@my-dejanews.com wrote:
>
> Don't you think that this article - may be cut down a bit - is
> worth to be auto-posted "very often" with a more "aggressive"
> subject line ?
>
I agree. This article should appear more often. It makes a lot of sense.
How about : How to post Good Questions in c.l.p.m.
--
____________________________________________________________
Frank Quednau
http://www.surrey.ac.uk/~me51fq
________________________________________________
------------------------------
Date: 25 Jun 1998 07:57:18 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: What a Crappy World (oh, yes!)
Message-Id: <6msvsu$ja$4@client3.news.psi.net>
Tom Christiansen (tchrist@mox.perl.com) wrote on MDCCLVIII September
MCMXCIII in <URL: news:6mrc82$li4$1@csnews.cs.colorado.edu>:
++ [courtesy cc of this posting sent to cited author via email]
++
++ In comp.lang.perl.misc,
++ Olga <katzman@students.uiuc.edu> writes:
++ :And more then half of Mr. Christiansen's posts
++ :were offensive
++
++ I call. Go to Deja News. Ask for my user profile.
++
Isn't it time for a RFD about comp.lang.perl.tom.christiansen?
People, if you can't deal with Tom's postings, get the manual
of your newsreader, and find out how to killfile him.
Abigail
--
Oops. Did I just suggest looking something up in the manual?
------------------------------
Date: 25 Jun 1998 07:59:54 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: What a Crappy World (oh, yes!)
Message-Id: <6mt01q$ja$5@client3.news.psi.net>
Olga (katzman@students.uiuc.edu) wrote on MDCCLVIII September MCMXCIII in
<URL: news:Pine.SOL.3.96.980624123542.697F-100000@ux7.cso.uiuc.edu>:
++ Oh, ok
++ and who should get to set the minimum standards, Craig?
++ You?
++ People who don't meet the "miminum standard" criteria should still be able
++ to post. People who exceed this criteria are welcome to ignore the posts
++ of the "idiots" but no one should have to be insulted just because their
++ questions seems dumb. When a six year old is screaming "what is this
++ word, what is this word", the teacher or parent, or the more
++ intelligent authority figure usually does not respond by saying,
++ "stupid" or "that doesn't deserve an answer". Sometimes not responding
++ works very well.
Could you then please take your own advice, let Tom post in the way
he wants and you just don't respond?
Else you're very hypocritical.
Abigail
--
perl -wleprint -eqq-@{[ -eqw+ -eJust -eanother -ePerl -eHacker -e+]}-
------------------------------
Date: 25 Jun 1998 08:08:17 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: What a Crappy World (oh, yes!)
Message-Id: <6mt0hh$ja$6@client3.news.psi.net>
Fred Riley (f.h.riley@NOSPAMselc.hull.ac.uk) wrote on MDCCLVIII September
MCMXCIII in <URL: news:359148D7.7E4@NOSPAMselc.hull.ac.uk>:
++
++ I can see the difference, Craig, but it's a matter of personal
++ interpretation as to whether someone's made sufficient effort to be
++ worthy of a response - a harder person than yourself might still think
++ the above is a stupid question. I personally tend towards the view that
++ there's no such thing as a stupid question, and this is the ethos on
++ TOOLB-L. It might be gently pointed out to a poster that the answer they
++ required was in the FAQ, or on such-and-such a website, but they would
++ never be given grief about posting in the first place.
Oh, but noone is saying the question was stupid. There are no stupid
questions in the FAQ. It's just stupid to ask the question in this
forum when it's answered in the FAQ.
++ By putting down newbies on this group who post "stupid questions"
++ regulars are putting them off posting, and maybe using Perl altogether.
++ The post by I R A Aggie (TIP: how to post good questions) is about as
++ welcoming as a porcupine's backside and makes it plain that anyone who
++ hasn't exhausted every possible avenue to find an answer before posting
++ a question is going to get their arse flamed off.
People are *not* putting down newbies. People are putting down those
who ask question without having done basic research. Not all newbies
won't do research! And I'm sure Tom (ha! I'm not saying which Tom)
has a sharp reply for me if I were to ask a question from the FAQ.
Abigail
--
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'
------------------------------
Date: Thu, 25 Jun 1998 03:03:33 -0500
From: Andrew Johnson <ajohnson@gpu.srv.ualberta.ca>
Subject: Re: What a Crappy World (oh, yes!)
Message-Id: <35920455.2D27093F@gpu.srv.ualberta.ca>
Abigail wrote:
>
> Abigail
> --
> Oops. Did I just suggest looking something up in the manual?
Abigail--;
andrew
------------------------------
Date: 25 Jun 1998 07:29:08 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: What a Crappy World
Message-Id: <6msu84$1j4$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
Lloyd Zusman <ljz@asfast.com> writes:
:I'd be willing to bet that a majority of people who come here asking
:"newbie" sort of questions haven't even heard of
:"news.announce.newusers"
No one should be granted access to Usenet until they've
read those periodic postings. Period. It's harsh, but
it's proper.
--tom
--
"Usenet is like a herd of performing elephants with diarrhea --
massive, difficult to redirect, awe-inspiring, entertaining, and a
source of mind-boggling amounts of excrement when you least expect
it." --gene spafford, 1992
------------------------------
Date: Thu, 25 Jun 1998 02:48:25 -0500
From: Andrew Johnson <ajohnson@gpu.srv.ualberta.ca>
Subject: Re: What a Crappy World
Message-Id: <359200C9.1A6914E1@gpu.srv.ualberta.ca>
Lloyd Zusman wrote:
!
[snip]
! > Where do people get the notion that clpm is 'grade-school' for
! > Perl (or for programming in general)? This is the fundamental
! > error people are making.
!
! Some people might indeed be making this error, but since you are
! responding to my particular post, please allow me to clarify what
! *my* position is.
ok...
! Many people here have taken it upon themselves to educate
! "newbies" about the following topics:
!
! -- That their questions are FAQ's.
!
! -- That excellent documentation exists which answers their
! questions.
!
! -- That this newsgroup would be even more cluttered with noise
! than it currently is if frequently asked questions were
! routinely and repeatedly posed and answered here.
!
! -- That some of the questions posed by novices are better
! answered in other, more topical forums.
!
! [ Note that nowhere in this list did I mention anything about
! providing novices with technical help about Perl itself. ]
!
! In my analogy, those who have chosen to provide this education
! are in a role that is similar to that of a second-grade teacher.
! Instead of teaching reading and arithmetic, they are teaching
! about netiquette and about the existence and location of the Perl
! documenatation. Those who pursue this self-chosen "teaching"
! pastime can do it politely, respectfully, and as adults (as Tom
! Phoenix does, for example), or they can do it insultingly,
! condescendingly, and immaturely.
and now I'll clarify my problem with your analogy...again, more
clearly:
1) person A can't read --- should person A attend and ask
questions like "what's this word?" at a writer's workshop?
2) person B reads at a grade six level ... but desparately wants
to be a writer --- He should really be signing on to
alt.writers.misc to ask "I know I should use a metaphor at the
beginning of of my story, but which metaphor?"
In both cases, there is no point actually answering the
question ... point them to somewhere they can perhaps
learn from.
I know ... your position is to be polite --- I won't argue there,
I also think that respect for others is a Good_Thing(tm) --- but,
more often than not, people DO get a "polite" response like
"You're question belongs elsewhere...it is not appropriate
here...go read XXX..." But, some seem to consider such an answer
rude and un-helpful ("why didn't you just answer the
question or say nothing at all?!"), and the ones that consider
such terse answers rude are too-damn-often not the ones who
asked, but people like *you* telling others they should be acting
like proper second grade teachers.
RTFM is a standard, and 'polite', answer to questions which are
answered in the FM. --- Don't get me wrong... I don't think
hurling insults is a good way to address neophyte questions, I
just don't actually see much "hurling of insults" here... usually
just terse RTFM's (often with pointers to which FM) which people
seem to be insulted by (or seem to think insult was intended by).
clpm is not the second grade --- good grief, I didn't know Perl
at one point...but I didn't attempt to learn it by asking
questions in a Perl discussion group. Of course, I expect first
year university students to know how to write an essay too...and
I've had plenty of flack for not giving enough slack when I mark
their essays --- but I'm of no mind to ease up on "newbie"
university students...it is not the second grade either!
Sorry, I try not to be rude...but I will not spend any time teaching
osteology students how to read and write --- I will tell them the
remedial reading/writing class is two doors down on the left...
if that's offensive to some (and it is, believe me)...tough!
regards
andrew
(who thinks learning programming should come at least a wee bit
later than the second grade --- *my* position, clarified).
------------------------------
Date: 25 Jun 1998 08:15:43 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: What a Crappy World
Message-Id: <6mt0vf$ja$7@client3.news.psi.net>
Tom Christiansen (tchrist@mox.perl.com) wrote on MDCCLVIII September
MCMXCIII in <URL: news:6mrikj$ol8$8@csnews.cs.colorado.edu>:
++ [courtesy cc of this posting sent to cited author via email]
++
++ In comp.lang.perl.misc,
++ Andrew Johnson <ajohnson@gpu.srv.ualberta.ca> writes:
++ :Where do people get the notion that clpm is 'grade-school' for
++ :Perl (or for programming in general)? This is the fundamental
++ :error people are making.
++
++ I don't know where this notion comes from, but it is a curious one.
++ We don't want to scare people away, but they need to disabuse themselves
++ of this wacky idea.
I'd prefer to see clpm as one of the ancient Greek schools.
Scolars discussing in groups, gathered around the experts.
(It is probably not, but that's the way how it should be)
Abigail
--
Can I be Euclid?
------------------------------
Date: 25 Jun 1998 08:40:21 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: What a Crappy World
Message-Id: <6mt2dl$rr$1@client3.news.psi.net>
T. Ames (ames0009@tc.umn.edu) wrote on MDCCLVIII September MCMXCIII in
<URL: news:35914065.5006321@news.tc.umn.edu>:
++ On 24 Jun 1998 17:32:34 GMT, Tom Christiansen <tchrist@mox.perl.com>
++ wrote:
++
++ <response to Olga...>
++ >--tom
++ >--
++ >I know I'm a pig-ignorant slut. --Andrew Hume
++
++ I've noticed (and I'm not the only one) that you use your sigs. as a
++ means to further insulting people. This group is really taking an
++ ugly turn.
You're a troll.
*plonk*
Abigail
--
perl -weprint\<\<EOT\; -eJust -eanother -ePerl -eHacker -eEOT
------------------------------
Date: 25 Jun 1998 08:42:58 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: What a Crappy World
Message-Id: <6mt2ii$rr$2@client3.news.psi.net>
Larry Rosler (lr@hpl.hp.com) wrote on MDCCLVIII September MCMXCIII in
<URL: news:MPG.ffb2faa21d139f19896cb@nntp.hpl.hp.com>:
++ In article <3591552f.10328814@news.tc.umn.edu>, T. Ames
++ <ames0009@tc.umn.edu> says...
++ > On 24 Jun 1998 18:09:54 GMT, Tom Christiansen <tchrist@mox.perl.com>
++ > wrote:
++ >
++ > > [courtesy cc of this posting sent to cited author via email]
++ > >
++ > >In comp.lang.perl.misc, ames0009@tc.umn.edu (T. Ames) writes:
++ > >:>I know I'm a pig-ignorant slut. --Andrew Hume
++ > >:
++ > >:I've noticed (and I'm not the only one) that you use your sigs. as a
++ > >:means to further insulting people. This group is really taking an
++ > >:ugly turn.
++ > >
++ > >Gosh no. I do no such thing! I don't even know what sig is there.
++ > >It's something inews chooses for me.
++ > >
++ > >--tom
++ > >
++ >
++ > If that is the case, then I apologize. But you can see that in this
++ > particular case, the sig. didn't look so good.
++
++ I discussed this point with Tom recently, saw his code, and am sure that
++ the sigs are randomly chosen. Some of them are very amusing and
++ intriguing. But the ensemble includes quotations that are
++ sexist/misogynist or otherwise unfunny, to say nothing of off-topic
++ regarding programming and languages.
People should assume things following '-- ' are to be taken seriously.
Abigail
--
Noone has the right not to be offended. //John Cleese.
------------------------------
Date: 25 Jun 1998 04:39:12 -0500
From: f.h.riley@NOSPAMselc.hull.ac.uk (Fred Riley)
Subject: Re: What a Crappy World
Message-Id: <359218c0.2149222@news3.newscene.com>
On 24 Jun 1998 20:30:46 GMT, smcdow@arlut.utexas.edu (Stuart McDow)
wrote:
>Fred Riley <f.h.riley@NOSPAMselc.hull.ac.uk> writes:
>>
>> Uh-huh. And if you're not a Unix geek? If you're using Perl on
>> Win95/NT?
>
>This begs the question: Why, if you're using a Microsoft platform -
>replete with many, many development tools and IDEs, etc - did you
>choose a development environment with its roots so deeply in and its
>paradigms so thoroughly steeped in the Unix world.
>From a personal viewpoint:
1. Because the websites I manage, for which I have to write CGI
scripts, reside on a Unix system.
2. Perl is cross-platform, whereas (thanks to Microsoft, Borland, and
the rest) there isn't a single cross-platform language for the PC
(apart from Java, and Microsoft are going to screw that over pretty
soon).
3. Perl is extremely good at text handling and creating on-the-fly
HTML documents - there's no PC equivalent, AFAIK.
4. I like the Perl philosophy, and the fact that it's not a
proprietary language, but is effectively 'owned' by the Internet
community.
5. There's masses of info and resources on Perl on the Internet.
On a more general point, I think it's wrong to turn your nose up at
someone who's trying to get to grips with Perl (which has to be one of
the most cryptic and daunting programming languages to understand for
a novice) just because they're not very good at Unix. That smacks of
exclusivity to me.
Cheers
Fred
------------------------------
Date: Thu, 25 Jun 1998 11:42:00 +0400
From: "Michael Sazonov" <msazonov@usa.net>
Subject: Re: WIN32::ODBC and use of
Message-Id: <6msv0a$snn@xpress.inforis.nnov.su>
hstack@att.com wrote in message
<6mrlk3$rdn@newsb.netnews.att.com> ...
>I need some help seeing how many rows were affected in an
update query. How
>do I do it, rowcount does not work.
>
>use Win32::ODBC;
>
>$sql = "update table1 set field = 'newvalue' where field
like 'oldvalue';
>$ret = $s_table->Sql($sql);
>
Use select statement with the same criteria before update:
$sql = "select count(*) as cnt from table1 where field like
'oldvalue'";
$ret = $s_table->Sql($sql);
$s_table->FetchRow;
$cnt = $s_table->Data;
I hope this will help.
===
Mike, sysadmin
------------------------------
Date: Thu, 25 Jun 1998 12:02:41 +0400
From: "Michael Sazonov" <msazonov@usa.net>
Subject: Re: WIN32::ODBC
Message-Id: <6mt072$3fa@xpress.inforis.nnov.su>
jhildeb2@my-dejanews.com PI[ET W SOOB]ENII
<6mrp84$i3h$1@nnrp1.dejanews.com> ...
>
>I am using Dave Roth's WIN32::ODBC package with
ActiveState's build 316 of
>Perl for WIN32. The program I am writing opens up multiple
ODBC connections
>to an Microsoft SQL server (version 6.0 if that matters).
In an error
>situation I would like to be able to close all my open ODBC
connections
>before ending the program. Using the Connection() function
I can get a list
>of all the connection numbers of my open connections but
the Close() function
>needs to be referenced using an ODBC Connection object
(e.g. $db->Close()).
>I can't seem to find a way to translate a connection number
into a connection
>object. Does anyone have any ideas?
Why not to use hash for all connections?
$db = new Win32::ODBC($DSN);
$cnum = $db->Connection;
$conn{$cnum} = $db;
..
#On error condition:
@cnums = $db->GetConnections;
foreach(@cnums) {
$conn{$_}->Close;
}
Hope this helps.
===
Mike, sysadmin
------------------------------
Date: 25 Jun 1998 07:33:56 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Would someone tell me what this means?
Message-Id: <6msuh4$1j4$2@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
Eric Bohlman <ebohlman@netcom.com> writes:
:Part of the problem is that much of it was written back in the
:days of Perl 4
I believe if you check your dates, you'll find that this statement
is inaccurate.
--tom
--
"It's okay to be wrong temporarily." --Larry Wall
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
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 V8 Issue 2975
**************************************