[15785] in Perl-Users-Digest
Perl-Users Digest, Issue: 3198 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon May 29 18:05:41 2000
Date: Mon, 29 May 2000 15:05:18 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <959637917-v9-i3198@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Mon, 29 May 2000 Volume: 9 Number: 3198
Today's topics:
Re: (offtopic) Where can I find cron for Win98? <larkas@eden.rutgers.edu>
Re: (offtopic) Where can I find cron for Win98? (Mark P.)
a really unusual prompt on remote host <eg344@nyu.edu>
Re: Advantages of Perl over Cold Fusion? <gellyfish@gellyfish.com>
Re: Can I do this using Perl? <gellyfish@gellyfish.com>
Re: cgi script that lets users post movie and book revi <bitbucket@home.net>
Re: Converting an alphanumeric string into an integer n (Marcel Grunauer)
directory permissions in NT scumjr@my-deja.com
Re: Dynamically assigning $variable name? <gellyfish@gellyfish.com>
HALL OF SHAME :-) <Tbone@pimpdaddy.com>
Re: HALL OF SHAME :-) (Craig Berry)
Re: HALL OF SHAME :-) <rick.delaney@home.com>
Re: HALL OF SHAME :-) <Tbone@pimpdaddy.com>
Re: HALL OF SHAME :-) <Tbone@pimpdaddy.com>
Re: HALL OF SHAME :-) <tony_curtis32@yahoo.com>
Re: HALL OF SHAME :-) <Tbone@pimpdaddy.com>
Help - I've been spammed with PERL <booksellersunion@booksellersunion.org>
Re: Help - I've been spammed with PERL <tony_curtis32@yahoo.com>
Re: How to COPY a website (Nick Kew)
Re: how to set the filename when sending content of unk <gellyfish@gellyfish.com>
IPC::OPEN2 on NT yuri_leikind@my-deja.com
Re: Is anything planned re: Perl error reporting? <gellyfish@gellyfish.com>
Re: Oraperl hangup - help! <gellyfish@gellyfish.com>
PERL and UDP Source port? (Che-Ming Chang)
Re: Perl CGI Script to generate web site statistics <gellyfish@gellyfish.com>
Re: Perl date formatting <gellyfish@gellyfish.com>
Re: Perl related humor? <gellyfish@gellyfish.com>
Re: Perl related humor? (Damian Conway)
Re: Perl related humor? (Neil Kandalgaonkar)
Re: runtime errors - Q how to do this <aqumsieh@hyperchip.com>
scoping trouble with nested structures <mariska@excite.nl>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 29 May 2000 16:38:41 -0400
From: Larry Kasoff <larkas@eden.rutgers.edu>
Subject: Re: (offtopic) Where can I find cron for Win98?
Message-Id: <3932D550.C3E4EB88@eden.rutgers.edu>
There are many such programs. My favorite is WinCron.
http://users.erols.com/graysteel/wincron.html
The Evil Beaver wrote:
> Does it exist? If so, where can I get it? Thanks in advance,
>
> --
> The Evil Beaver <evilbeaver@NOSPAMlogiclrd.cx>
> -- Remove NOSPAM to e-mail me.
> This message ROT-13 encrypted twice for extra security.
------------------------------
Date: Mon, 29 May 2000 21:12:40 GMT
From: perl@imchat.com (Mark P.)
Subject: Re: (offtopic) Where can I find cron for Win98?
Message-Id: <3932dcb9.533801495@news.ionet.net>
On Sun, 28 May 2000 18:42:52 GMT, "The Evil Beaver"
<evilbeaver@NOSPAMlogiclrd.cx> wrote:
>Does it exist? If so, where can I get it? Thanks in advance,
wincron
Search at zdnet.co/downloads for it.
>
>--
>The Evil Beaver <evilbeaver@NOSPAMlogiclrd.cx>
>-- Remove NOSPAM to e-mail me.
>This message ROT-13 encrypted twice for extra security.
>
>
>
MP
------------------------------
Date: Mon, 29 May 2000 15:01:13 -0400
From: "Edward Grinvald" <eg344@nyu.edu>
Subject: a really unusual prompt on remote host
Message-Id: <n9zY4.19$TT5.379@typhoon.nyu.edu>
Hi,
I want to use Net::Telnet (installed and confirmed with a different host) to
do some stuff on a remote host. The problem is that the remote host doesn't
immideatly go into a shell, but instead throws up an arrow-buttons driven
menu (mail, account, news....). I have to enter ! to get to the prompt. So,
my scripts die with "timed out waiting for prompt at line xxx." Any ideas?
Thank you,
edward grinvald
------------------------------
Date: 29 May 2000 21:05:35 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Advantages of Perl over Cold Fusion?
Message-Id: <8guiif$q7o$1@orpheus.gellyfish.com>
On Sat, 27 May 2000 10:17:47 -0700 Steve Leibel wrote:
> In article <8gm0je$ded$1@paxfeed.eni.net>, "Mark Aisenberg"
> <mark@sharewire.com> wrote:
>
>> 1) Perl is open, and not controlled by a single company.
>> What happens is you use a proprietary product, and the
>> supplier raises its prices, changes its licensing terms,
>> discontinues support for it, or lards it with unneeded features
>> and fat? What happens if you need to move to a different
>> development platform, one not supported by the supplier?
>
> Open source software can also become larded with unneeded features and
> fat. I'd mention Perl 5.6 but I don't want to get flamed. I've been
> using Perl since 4.31 or so and I can't help feeling that I'd rather have
> a cleaner parser than more language features.
Well sure, but if you have concerns with the development of Perl maybe
you should have some input on the Perl 5 Porters mailing list.
Alternatively you can build a suitably reduced perl from the 5.6.0
sources if you care to spend some time on it.
Dont blame Perl for your own inadequacies if you're not going to do
anything yourself.
/J\
--
It's a good thing that beer wasn't shaken up any more, or I'd have looked
quite the fool. An april fool, as it were.
--
fortune oscar homer
------------------------------
Date: 29 May 2000 18:26:37 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Can I do this using Perl?
Message-Id: <8gu98d$r01$1@orpheus.gellyfish.com>
On Mon, 29 May 2000 17:39:27 +0100 Alex Gough wrote:
<I wrote>
>> ActivePerl needs LWP for PPM to work - the same goes for XML::Parser and
>> a couple of other things ... CPAN.pm will work with a base install but
>> will bid you to install some other stuff to get the best out of it.
>>
> This is something which confused me for a while when I started trying to
> install modules. It took me a while to realise that some of them come
> pre-installed (with active state) and I wasted quite a while trying to work
> out what wasn't working.
>
> If anyone else gets confused when trying to play with modules, it is always
> useful to try:
>
> use whatever::however;
>
> in a simple script before tearing your hair out.
>
Or even easier :
perl -MSome::Module
at the command line ....
/J\
--
You think I don't want to? It's those TV networks, Marge: they won't let
me. One quality show after another, each one fresher and more brilliant
than the last. If they only stumbled once, just gave us thirty minutes
to ourselves, but they won't! They won't let me live!
--
fortune oscar homer
------------------------------
Date: Mon, 29 May 2000 18:35:12 GMT
From: <bitbucket@home.net>
Subject: Re: cgi script that lets users post movie and book reviews on website?
Message-Id: <ALyY4.19732$a36.309253@news1.rdc1.fl.home.com>
<calderas@my-deja.com> wrote in message news:8gto30$asj$1@nnrp1.deja.com...
> yeah, and i couldnt find exactly what i was looking for there... there
> are polling scripts but none that seemed to allow for ratings,
> comments, and calculating the ratings...
>
>
http://www.amazon.com/exec/obidos/ASIN/1565922840/4sarasotacom/
Or pay someone to make one for you if you can't hack an existing free script
to do what you want.
--
McWebber
No email replies read.
Free Domain Name Parking
http://www.4sarasota.com/registration.html
------------------------------
Date: Mon, 29 May 2000 18:36:52 GMT
From: marcel@codewerk.com (Marcel Grunauer)
Subject: Re: Converting an alphanumeric string into an integer number
Message-Id: <slrn8j5eg2.tgf.marcel@codewerk.com>
On Mon, 29 May 2000 16:36:34 GMT, Ala Qumsieh <aqumsieh@hyperchip.com> wrote:
>
>Diablito <diab.litoNOdiSPAM@usa.net.invalid> writes:
>
>> I have a variable 'word' (letters and numbers) and I want to
>> convert that into an integer in the range of 1-100.
>> I need something like a=1,b=2,c=3,...Then I want the script to
>> calculate a x variable:(example) if word is 'dog' x=26,if
>> it's 'cat' x=23 and so on.
>
>In the spirit of Perl Golf, here's a couple of oneliners:
>
> $x += ord($_) - 96 for split //, $word;
> $x+=ord($_)-96for split//,$word; # above without spaces
> $x+=ord($_)-96for$word=~/\S/g;
Save two strokes:
$x+=ord()-96for$word=~/\S/g;
Marcel Grunauer
------------------------------
Date: Mon, 29 May 2000 19:08:33 GMT
From: scumjr@my-deja.com
Subject: directory permissions in NT
Message-Id: <8guf78$qv2$1@nnrp1.deja.com>
I've just started playing around with Perl (on an NT 4 system) and am
scanning through directories gathering various statistics. I want to
report on directories that I do not have access to and I've tried all
of the file tests, but none of them appear to work (although the tests
to check whether or not it is a directory works fine). I've tried
using the full path name and just the directory name itself, but the
tests always come back "true". Are these tests only valid for Unix
systems? I've looked through the documentation and could see no
mention of them not working on an NT system.
If these tests do not work on NT what options do I have to check for
permissions?
Thanks in advance,
SJ
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 29 May 2000 18:07:20 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Dynamically assigning $variable name?
Message-Id: <8gu848$n33$1@orpheus.gellyfish.com>
On 26 May 2000 04:48:08 GMT Rachel Polanskis wrote:
>
> Anyway I read the article in the latest TPJ regarding the psychology
> of CLPM. I do know how this froup works. I thought I was following
> the etiquette and protocols pretty well and didn't expect
> flaming from a supposed net.god.
If you have read that article you will have read what I was quoted as
saying as regards the high standards that we like to maintain here.
Part of that high standard takes in discouraging people from using widely
disparaged techniques such as symbolic references - infact it seems that
this is the prime thing that people get discouraged from doing .
The thing that you have run into here is that you have a programming
problem but instead of asking how you might overcome that problem you have
decided on one way of solving it and have asked how to achieve that without
explaining what the base problem is - thus not availing yourself of the
greatest resource that this group has to offer, which is not peoples
encyclopaedic knowledge of the perl documentation and the catalogue of
modules available from CPAN but programming talent and experience in
abundance most often pre-dating the existence of perl.
Anyhow what you got from Abigail is far from a flaming - a medium
chargilling perhaps but far from a full-on flame job.
/J\
--
Ha ha! Look at this country! ?You are gay!? Ha ha!
--
fortune oscar homer
------------------------------
Date: 29 May 2000 20:30:23 GMT
From: Intergalactic Denizen of Mystery <Tbone@pimpdaddy.com>
Subject: HALL OF SHAME :-)
Message-Id: <8guk0v$28fl$1@news.enteract.com>
I made a quick survey of "troll" posts. The good news: a large number were
bleak, fast-drying leaves. The bad news: many have been responded to, and
by people who IMO should know better. I notice regretfully that I am one
of them. I will change.
Note: "Hall of Shame" is a facetious title; I know it's very hard to resist
posting, especially when something dear to your heart is being misrepresented,
especially when you can make a witty retort. I sympathize. But please, just
say no. This means you:
Andrew N. McGuire <anmcguire@ce.mediaone.net>
bart.lateur@skynet.be (Bart Lateur)
Ben Kennedy <bkennedy99@home.com>
bmetcalf@baynetworks.com (Brandon Metcalf)
Brian Landers <brian@bluecoat93.org>
brian@smithrenaud.com (brian d foy)
Chris Allen <chris@cjx.com>
Christian Winter <thepoet1@arcormail.de>
coke@cokesque.com (Coke Harrington)
Dan Sugalski <dan@tuatha.sidhe.org>
Dave Cross <dave@dave.org.uk>
dha@panix.com (David H. Adler)
Elaine Ashton <elaine@chaos.wustl.edu>
elephant@squirrelgroup.com (jason)
Intergalactic Denizen of Mystery <Tbone@pimpdaddy.com>
Jeff Zucker <jeff@vpservices.com>
jerome@activeindexing.com (Jerome O'Neil)
Larry Rosler <lr@hpl.hp.com>
mbadolato@quepasa.com (Mark Badolato)
merlyn@stonehenge.com (Randal L. Schwartz)
Mur <jboesNOjbSPAM@qtm.net.invalid>
nj_kanda@alcor.concordia.ca (Neil Kandalgaonkar)
Paul Eckert <peckert@epicrealm.com>
pdf@morgan.ucs.mun.ca (Paul David Fardy)
perl_phreak@yahoo.com (Gordon Clemmons)
samurai@metallicafan.com
Scratchie <AgitatorsBand@yahoo.com>
sjs@yorku.ca (Steven Smolinski)
Sue Spence <sue@pennine.com>
tadmc@metronet.com (Tad McClellan)
Thorbj=F8rn Ravn Andersen <thunderbear@bigfoot.com>
Thoren Johne <thoren@southern-division.com>
tjla@guvfybir.qlaqaf.bet (Gwyn Judd)
Tk Soh <r28629@email.sps.mot.com>
Uri Guttman <uri@sysarch.com>
------------------------------
Date: Mon, 29 May 2000 20:47:30 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: HALL OF SHAME :-)
Message-Id: <sj5lr2635pj43@corp.supernews.com>
Intergalactic Denizen of Mystery (Tbone@pimpdaddy.com) wrote:
: Note: "Hall of Shame" is a facetious title; I know it's very hard to resist
: posting, especially when something dear to your heart is being misrepresented,
: especially when you can make a witty retort. I sympathize. But please, just
: say no. This means you:
Resisting the bait is an option when you merely disagree with an
*opinion*. But what about the (more common, here) case of a factually
incorrect post? If it goes unchallenged, it becomes part of the public
record, there to mislead countless newbies for all time.
--
| Craig Berry - cberry@cinenet.net
--*-- http://www.cinenet.net/users/cberry/home.html
| "The road of Excess leads to the Palace
of Wisdom" - William Blake
------------------------------
Date: Mon, 29 May 2000 21:23:56 GMT
From: Rick Delaney <rick.delaney@home.com>
Subject: Re: HALL OF SHAME :-)
Message-Id: <3932E153.BD55FFDE@home.com>
Craig Berry wrote:
>
> Resisting the bait is an option when you merely disagree with an
> *opinion*. But what about the (more common, here) case of a factually
> incorrect post? If it goes unchallenged, it becomes part of the public
> record, there to mislead countless newbies for all time.
This is a red herring, as "challenging" incorrect posts by following up
to the troll is of no more value than following up with a correct answer
to the orignal poster. If you stop paying attention to the troll, it
will disappear.
I would be surprised if anyone who was searching archives picked the
troll's answer over a correct one. Someone that clueless is unlikely to
be able to search archives in the first place.
Please resist the urge to be The Saviour Of Usenet.
Please stop feeding the trolls.
--
Rick Delaney
rick.delaney@home.com
------------------------------
Date: 29 May 2000 21:50:14 GMT
From: Intergalactic Denizen of Mystery <Tbone@pimpdaddy.com>
Subject: Re: HALL OF SHAME :-)
Message-Id: <8guomm$2d1a$1@news.enteract.com>
cberry@cinenet.net writes:
>Resisting the bait is an option when you merely disagree with an
>*opinion*. But what about the (more common, here) case of a factually
>incorrect post? If it goes unchallenged, it becomes part of the public
>record, there to mislead countless newbies for all time.
My point is that this fear is exaggerated. A newbie who takes
any matter of "public record" at face value, or cannot tell a
fake response after the most cursory inspection of the group
is not worth caring about. I don't think there are many of
those anyway. If you can't resist it, email.
------------------------------
Date: 29 May 2000 21:52:46 GMT
From: Intergalactic Denizen of Mystery <Tbone@pimpdaddy.com>
Subject: Re: HALL OF SHAME :-)
Message-Id: <8guore$2d3d$1@news.enteract.com>
thoren@southern-division.com writes:
>i've been reading half a year of THIS trolls post, and i don't like to
>ignore it any more. to ignore THIS troll didn't help a wink, and if it does
>not help to ignore, then i think we should feed him until he pukes his
>little soul out. there are times when it's the most wrong way to simply
>'ignore' what could kill the community, just because 'ignorance' can't solve
>THIS problem.
>
>you know, what annoys me most is the fact that THE troll is doing the same
>bad style snipplets over and over again. THIS troll is not learning a bit,
>and so he fails to give us an example of how naive could turn into knowing.
>this troll is a 'fascist', and i like to fight the fascists.
Your style and vocabulary doesn't inspire confidence. Consider the
suggestion that you are motivated by the same impulses as the troll.
At any rate, your approach will not work. And "half a year" is nothing...
------------------------------
Date: 29 May 2000 16:58:00 -0500
From: Tony Curtis <tony_curtis32@yahoo.com>
Subject: Re: HALL OF SHAME :-)
Message-Id: <87hfbh589j.fsf@limey.hpcc.uh.edu>
>> On 29 May 2000 21:52:46 GMT,
>> Intergalactic Denizen of Mystery <Tbone@pimpdaddy.com> said:
>> Thoren Johne said:
>> fails to give us an example of how naive could turn
>> into knowing. this troll is a 'fascist', and i like to
>> fight the fascists.
> Your style and vocabulary doesn't inspire
> confidence.
"Thoren Johne" sounds German to me, or at least someone
whose native language is German (note his article ends
with "grusz"). Not everyone speaks English as a native
language :-)
--
"Trying is the first step towards failure"
Homer Simpson
------------------------------
Date: 29 May 2000 22:03:37 GMT
From: Intergalactic Denizen of Mystery <Tbone@pimpdaddy.com>
Subject: Re: HALL OF SHAME :-)
Message-Id: <8gupfp$2dmr$1@news.enteract.com>
tony_curtis32@yahoo.com writes:
>> Your style and vocabulary doesn't inspire
>> confidence.
>
>"Thoren Johne" sounds German to me, or at least someone
>whose native language is German (note his article ends
>with "grusz"). Not everyone speaks English as a native
>language :-)
I was referring to the "language-independent" aspects of the
post. "Feed him till he pukes", "this will kill the community",
and "he is a fascist" are examples of what I am talking about.
------------------------------
Date: Mon, 29 May 2000 15:43:06 -0400
From: "new" <booksellersunion@booksellersunion.org>
Subject: Help - I've been spammed with PERL
Message-Id: <oLzY4.7807$v7.573329@news-west.usenetserver.com>
some crazy people started adding dozens of links at a time to my free for
all links page.
I sent nice messages to the webmasters at the links asking them not to post
so many links.
Than, all of a sudden, the page started getting blasted with about a zillion
new links -- all sent through AGENT: CGI
I stated checking out the referers and found about 10-15 different free for
all link pages from all around the world that automatically throw variables
at my FFA perl file when someone adds to their page. Like, a world wide -
multi level marketing sceme cooked up by lamers.
Also, lots of variables sent directly from people's dial up AOL (and others)
IP addresses.
I am logging these 'spam' attacks.
Any suggestions on what to do to counter or thwrat shennanigans like this??
One friend suggested sending a ping of death to their IP when this stuff
comes through.
------------------------------
Date: 29 May 2000 15:19:05 -0500
From: Tony Curtis <tony_curtis32@yahoo.com>
Subject: Re: Help - I've been spammed with PERL
Message-Id: <87k8gd5cue.fsf@limey.hpcc.uh.edu>
>> On Mon, 29 May 2000 15:43:06 -0400,
>> "new" <booksellersunion@booksellersunion.org> said:
> Than, all of a sudden, the page started getting blasted
> with about a zillion new links -- all sent through
> AGENT: CGI
And the relevance to perl is...?
perl != CGI
Try in comp.infosystems.www.authoring.cgi
--
"Trying is the first step towards failure"
Homer Simpson
------------------------------
Date: Fri, 26 May 2000 23:26:41 +0000
From: nick@webthing.com (Nick Kew)
Subject: Re: How to COPY a website
Message-Id: <h71ng8.6c.ln@sleipnir.webthing.com>
In article <m1r9apff8y.fsf@halfdome.holdit.com>,
merlyn@stonehenge.com (Randal L. Schwartz) writes:
> I have some friends at a Very Large online consumer shopping site that
> were using a version of my code during the big christmas rush last
> year, and caught many people trying to download their entire 60,000+
> item catalog with "offline browsing mode" from a cable modem. Without
> my blocker, their system would have come to its knees at least a few
> times trying to service all those dynamic requests, and they would
> have lost real dollars during their peak season -- they estimate 6
> figures of loss had that happened.
That's interesting. I wonder if you can offer comments on a somewhat-
evil sucking agent I have running.
I run a link-spider. The offline version is fully well-behaved, but the
online version puts out rapid fire so as to return a report to the user
while [s]he waits. Both versions respect robots.txt.
Now, I'm a little uneasy about the rapid-fire online version being badly
behaved, and I've hardwired a limit to the depth to which it will recurse.
I've also held back from making source code publicly available.
If Randal - or anyone else who's seriously looked at the impact of
ill-mannered spiders - would care to comment, it'll be appreciated.
Link Valet is at
<URL:http://www.htmlhelp.com/tools/valet/>
<URL:http://www.webthing.com/valet/>
(note that while the online service is stable, comments on the offline
monitoring options would probably be premature)
--
Nick Kew
------------------------------
Date: 29 May 2000 16:29:11 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: how to set the filename when sending content of unknown type to a browser?
Message-Id: <8gu2c7$4bd$1@orpheus.gellyfish.com>
On Mon, 29 May 2000 10:58:50 GMT M. van den Bos wrote:
> I don't even know if this is the right group to ask this question in,
> but I hope you can help me.
>
> I have this perl script I'm working on that sends a delimited file to
> a browser with "content-type: unknown" so that the user gets to save
> the file.
>
> So far this all works fine, but the default filename in the dialog is
> the name of the script which sends the output. Is there any way of
> setting that filename to something else?
>
Possibly but you will want to ask in the newsgroup :
comp.infosystems.www.authoring.cgi
as this is general to the domain of CGI programming rather than specific
to Perl.
/J\
--
Here's good news! According to this eye-catching article, SAT scores
are declining at a slower rate!
--
fortune oscar homer
------------------------------
Date: Mon, 29 May 2000 19:49:34 GMT
From: yuri_leikind@my-deja.com
Subject: IPC::OPEN2 on NT
Message-Id: <8guhk9$sm7$1@nnrp1.deja.com>
Hi All,
Using IPC::Open2 on NT (which has become possible only with $|=1 ) I start in
my script a program as a function which receives a line in stdin and gives a
line to stdout.
The problem is after closing both filehandles the process is
left in memory and is not finished.
Using this program from CMD I stop it by pressing CTRL-Z.
How do I emulate this in my script if
close FH1; close FH2;
doesn't help?
Yuri Leikind
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 29 May 2000 19:51:13 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Is anything planned re: Perl error reporting?
Message-Id: <8gue71$bhr$1@orpheus.gellyfish.com>
On 25 May 2000 23:01:49 GMT Abigail wrote:
> On Thu, 25 May 2000 14:53:24 -0700, Tom Phoenix <rootbeer@redcat.com> wrote:
> ++ On 25 May 2000, Ilmari Karonen wrote:
> ++
> ++ > But if other people prefer this style, I suppose it couldn't be too
> ++ > hard to change.
> ++
> ++ Heck, if someone just suggests that diagnostics.pm could be hacked to
> ++ enable this, maybe Abigail will do it before the weekend. :-)
>
>
> ETOOLITTLECONTEXT
>
EBAHGUM
/J\
--
And there's nothing wrong with hitting someone when his back is turned.
--
fortune oscar homer
------------------------------
Date: 29 May 2000 19:38:46 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Oraperl hangup - help!
Message-Id: <8gudfm$95f$1@orpheus.gellyfish.com>
On Thu, 25 May 2000 20:55:40 -0400 Ray Decker wrote:
>
>
> Makarand Kulkarni wrote:
>>
>> > The following script hangs our Oracle instance after 16,285 records. It
>>
>> If you think this problem is Oraperl specific then you should try using
>> DBI and DBD::oracle. Oraperl was useful in the good old days when
>> Perl 4 was around. Oraperl as it exists for Perl 5 is just a cool wrapper
>> around DBI and DBD::Oracle. However, it does not expose all of the
>> power that DBI can provide to users.
>
> Actually, this problem first surfaced with a C program using OCI
> directly.
Then this is highly likely to be a bug with the Oracle client libraries
which would best be taken up with Oracle support or with the newsgroup
comp.databases.oracle - Oraperl or DBD::Oracle is at the mercy of those
libraries as I am sure you understand.
/J\
--
Marge, I'm going to miss you so much. And it's not just the sex. It's
also the food preparation.
--
fortune oscar homer
------------------------------
Date: 29 May 2000 19:49:57 GMT
From: cheming@lis.pitt.edu (Che-Ming Chang)
Subject: PERL and UDP Source port?
Message-Id: <8guhl5$nb7$1@usenet01.srv.cis.pitt.edu>
Hi! Everyone,
Can you please let me know if I am doing something wrong in the following simple test?
#!/usr/bin/perl -w
use IO::Socket;
$client = IO::Socket::INET->new(PeerAddr => "172.18.111.100",
PeerPort => 2427,
localAddr => "161.44.15.32",
localPort => 2427,
Proto => 'udp',
Type => SOCK_DGRAM);
$client->send("CRCX 1 S0/DS1-0/1\@va-5300-23 MGCP 0.1\n");
yyyyy.com -> malt UDP D=2427 S=38919 LEN=46
0: 0800 2082 e26f 0030 96bd 7400 0800 4500 .. ..o.0..t...E.
16: 0042 8b1f 4000 fc11 27c8 a12c 0f20 ac12 .B..@.|.'..,. ..
32: 6f64 9807 097b 002e 71ee 4352 4358 2031 od...{..q.CRCX 1
48: 2053 302f 4453 312d 302f 3140 7661 2d35 S0/DS1-0/1@va-5
64: 3330 302d 3233 204d 4743 5020 302e 310a 300-23 MGCP 0.1.
I would like to use the destination and source port as 2427 but it looks like
the D port is ok but not the S port. I thought that once I give it a localPort 2427, then it should give me the 2427 as my source port, right? Please, let me kknow if I do something wrong here. Thank you very much!!
--
Che-ming Chang [Tom]
cheming@lis.pitt.edu
cheming@bellsouth.net
University of Pittsburgh
------------------------------
Date: 29 May 2000 18:41:53 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl CGI Script to generate web site statistics
Message-Id: <8gua51$ttj$1@orpheus.gellyfish.com>
On Mon, 29 May 2000 15:53:37 GMT Dale Winburn wrote:
> I'm writing a CGI script to generate statistics for a web site. How can I
> determine in the Perl CGI script which page called the CGI script?
>
> I call the CGI script from the web page with <!--#exec
> cgi="/cgi-bin/cgi01.cgi"-->.
> I have tried a call with a command line input <!--#exec
> cgi="/cgi-bin/cgi01.cgi mypage"--> then use @ARGV, but this gives me an
> error on my host server.
>
> I can find all kinds of single page counters, but all of these use separate
> scripts and count files for each page. I would like to maintain all
> statistics in one file.
>
I think thats generally called a server log. Perhaps you ought to read
the manual for your server to discover how you get it to do the kind of
logging you want.
/J\
--
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins
and eskimos!
--
fortune oscar homer
------------------------------
Date: 29 May 2000 19:25:19 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl date formatting
Message-Id: <8gucmf$6is$1@orpheus.gellyfish.com>
On Mon, 29 May 2000 03:24:06 GMT Steven Smolinski wrote:
> Godzilla! <godzilla@stomp.stomp.tokyo> wrote:
>>Larry Rosler wrote:
>
>>> [The OP's code] provides nothing that isn't available more cleanly,
>>> compactly, and flexibly from the function POSIX::strftime .
>
> [...]
>
>>What would be the relative percentage bloat
>>factor of using buggy posix over Mr. Stone's
>>sleek and slim code?
>
> "Buggy" POSIX? As in buggy POSIX::strftime?
Alternatively this could be taken as an assertion that POSIX as a whole
is buggy which would be quite some claim to make about an international
standard which makes no strictures upon its implementation.
/J\
--
Dear Homer, IOU one emergency donut. Signed Homer. Bastard! He's always
one step ahead.
--
fortune oscar homer
------------------------------
Date: 29 May 2000 15:48:21 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl related humor?
Message-Id: <8gtvvl$s6f$1@orpheus.gellyfish.com>
On Mon, 29 May 2000 12:00:43 GMT yuri_leikind@my-deja.com wrote:
> Hi All,
>
> Can anyone point me to a collection of Perl related humor?
>
Well if you search at Deja news <http://www.deja.com/home_ps.shtml> in
the group alt.humor.best-of-usenet for messages that have the name of
this newsgroup in the subject line you will get a start ...
/J\
--
It's not easy to juggle a pregnant wife and a troubled child, but somehow
I managed to fit in eight hours of TV a day.
--
fortune oscar homer
------------------------------
Date: 29 May 2000 20:08:34 GMT
From: damian@cs.monash.edu.au (Damian Conway)
Subject: Re: Perl related humor?
Message-Id: <8guio2$tq9$1@towncrier.cc.monash.edu.au>
Elaine Ashton <elaine@chaos.wustl.edu> writes:
>Not that you could tell that anyone in Perl has a sense of humour around
>these parts there have been some rather funny April Fool's jokes.
>http://history.perl.org/ has a few of them documented and you might also try
>Carp.pm which spits out beautiful Haiku error messages.
s/Carp/Coy/
Damian
------------------------------
Date: 29 May 2000 21:17:01 GMT
From: nj_kanda@alcor.concordia.ca (Neil Kandalgaonkar)
Subject: Re: Perl related humor?
Message-Id: <8gumod$gh2$1@newsflash.concordia.ca>
In article <8gtm56$9np$1@nnrp1.deja.com>, <yuri_leikind@my-deja.com> wrote:
>Hi All,
>
>Can anyone point me to a collection of Perl related humor?
Mark-Jason Dominus has written classics (along with a cast of thousands,
as in the Infrequently Asked Questions About Perl).
See http://www.plover.com/~mjd/perl,
look under "Perl Stupidity" for humorous perl, and April Fools' Day for
perl humor.
--
Neil Kandalgaonkar
neil@brevity.org
------------------------------
Date: Mon, 29 May 2000 18:44:55 GMT
From: Ala Qumsieh <aqumsieh@hyperchip.com>
Subject: Re: runtime errors - Q how to do this
Message-Id: <7aitvx42mx.fsf@Merlin.i-did-not-set--mail-host-address--so-shoot-me>
Dick Nickalls dicknickallscompuservecom <100115.1010@CompuServe.COM> writes:
> Q How can I trap runtime errors in PERL without using
> eval() ??
You trap them:
perldoc -q trap
Found in /usr/lib/perl5/5.00503/pod/perlfaq8.pod
How do I trap control characters/signals?
Also, checkout the special %SIG hash, and it's special __WARN__ and
__DIE__ keys in perlvar.
--Ala
------------------------------
Date: Mon, 29 May 2000 23:10:10 +0200
From: "Mariska" <mariska@excite.nl>
Subject: scoping trouble with nested structures
Message-Id: <3932dec5$0$14425@reader3>
Hi all.
Hope someone helps me out of this...
I have a subroutine
sub routine {
my $foo="something"
if ($foo ne "") {
$foo is not the same anymore
}
}
Is there a way to make the scoping recusive?
or passing params to a 'if block' like subs?
Regards,
Mariska van Schie
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 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.
| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
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 V9 Issue 3198
**************************************