[12233] in Perl-Users-Digest
Perl-Users Digest, Issue: 5833 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun May 30 06:07:19 1999
Date: Sun, 30 May 99 03:00:18 -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 Sun, 30 May 1999 Volume: 8 Number: 5833
Today's topics:
Re: _Please_ improve localtime! <Russell_Schulz@locutus.ofB.ORG>
Re: Accents Sensitivity <Russell_Schulz@locutus.ofB.ORG>
Re: Bandwidth [Was: Re: man pages and FAQs: why posted? <Russell_Schulz@locutus.ofB.ORG>
Re: FAQ 4.16: Does Perl have a year 2000 problem? Is Pe (Chris Torek)
Re: FAQ 4.16: Does Perl have a year 2000 problem? Is Pe (Marc Haber)
Re: FAQ 4.16: Does Perl have a year 2000 problem? Is Pe <bill@fccj.org>
Re: How do I prevent a CGI timeout? <kachow@anyemail.com>
Re: HTTP Upload using CGI.pm <bill@fccj.org>
Re: Looking for Net::SMTP <ebohlman@netcom.com>
Re: Making executables from .pl files? smnayeem@my-deja.com
Perl/Tk <andrewf@beausys.demon.co.uk>
Re: Perl/Tk <ebohlman@netcom.com>
Please guide me! <info11@home.com>
Re: Please guide me! <rootbeer@redcat.com>
Re: Please help on RegXpression (Larry Rosler)
REMOTE_USER - How come I can't see it? (ace)
Re: REMOTE_USER - How come I can't see it? <rootbeer@redcat.com>
Slow, or looping? (Kai Henningsen)
Re: Slow, or looping? <rootbeer@redcat.com>
Re: to see who is online <xrxoxtxhxdx@xrxoxtxhx.xnxextx>
Re: Uploading image files.. <kachow@anyemail.com>
Re: Y2K. localtime(time) <Russell_Schulz@locutus.ofB.ORG>
Re: Y2K. localtime(time) <Russell_Schulz@locutus.ofB.ORG>
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 30 May 1999 00:45:46 -0400
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: Re: _Please_ improve localtime!
Message-Id: <19990530.004546.3x8.rnr.w164w@locutus.ofB.ORG>
rlb@intrinsix.ca (Lee) writes:
>> So, hey, give us poor programmers a break. Introduce a $^something
>> option to give localtime more useful semantics.
>
> I think what you want to do is write yourself a realtime() sub that calls
> localtime and does the things you want, and then never call localtime
> directly.
I agree -- obviously, changing localtime() is a bad idea.
But once you write this realtime(), _please_ submit it to perlbug, so it
can become part of the standard distribution (helping the poor interface
on localtime die an all-too-late death).
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
------------------------------
Date: Sun, 30 May 1999 01:48:26 -0400
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: Re: Accents Sensitivity
Message-Id: <19990530.014826.2b4.rnr.w164w@locutus.ofB.ORG>
bart.lateur@skynet.be (Bart Lateur) writes:
> replace maria
> with m[aa`aa]r[iml][aa`aa]
> and use this as the search pattern. Tada: accent insensitive search!
Unless someone wants `Mdria'. Wouldn't POSIX's
/[[=m=]][[=a=]][[=r=]][[=i=]][[=a=]]/i
take care of this?
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
------------------------------
Date: Sun, 30 May 1999 00:20:08 -0400
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: Re: Bandwidth [Was: Re: man pages and FAQs: why posted?
Message-Id: <19990530.002008.1b5.rnr.w164w@locutus.ofB.ORG>
stanley@skyking.OCE.ORST.EDU (John Stanley) writes:
> In article <7hqgh1$bkh$1@srv38s4u.cas.org>, <lvirden@cas.org> wrote:
>> in this group... So if the bandwidth is going to be used anyways, it
>> might as well be used on something like the FAQs.
>
> Invalid assumption.
Unfortunately, you cut the part that made it a plausibly valid assumption.
You know, the part about `newbies asking the FAQs'. Yeah, that part.
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
------------------------------
Date: 29 May 1999 23:57:00 -0700
From: torek@elf.bsdi.com (Chris Torek)
Subject: Re: FAQ 4.16: Does Perl have a year 2000 problem? Is Perl Y2K compliant?
Message-Id: <7iqnfs$fti@elf.bsdi.com>
In article <7ipi8u$j5c$1@nnrp1.deja.com> <finsol@ts.co.nz> writes
[taken out of order -- most important point first]:
>You would do the Perl community more credit by working on Y2K awareness,
>not clouding the issue unecessarily.
You would do *yourself* credit by learning to communicate with your
target audience.
I have said this before, but I will repeat it in new words; some
lessons only sink in with repetition. If you intend to communicate
with technical people, you have several alternatives. The best by
far is to LEARN THEIR TERMINOLOGY and use it correctly.
If you are unwilling or unable to learn their terminology, you
should define your terms. For instance, you could, near the
beginning of any of your claims about Y2K problems in various
languages, say something like:
NOTE: for the purposes of this article, "The XYZ programming
language" refers to programs and fragments of programs written
in the XYZ language or using the XYZ system, rather than the
language or system itself. "Has bugs" means "although I am
not qualified to analyze any actual code for correctness, I
have been given to understand that programming errors of the
sort I will claim are common."
>For the purposes of the article, in which I tried to avoid as
>much jargon as possible, it was convenient to describe them as
>programming languages, as programmers use them for instructing
>computers i.e. programming.
Q: How many legs does a dog have, if you call a tail a leg?
A: Four. Calling a tail a leg does not make it one.
It may be *convenient* to misuse technical terms, but it does you
no good.
"Jargon, n. 1. words or expressions used by a particular group
or profession (/medical jargon/)." --The Pocket Oxford Dictionary
Jargon *does* impose a barrier to understanding by those "not in
the know". The problem, however, is that jargon exists precisely
because it has very specific meanings to those who *are* "in the
know". You would not want your doctor to analyze your condition,
then call a surgeon on the phone and tell him "I need you to sew
up her leg" if the actual particular problem is that he needs the
surgeon to operate on your knee to reconnect your medial collateral
ligament. While this ligament is "in your leg" (insofar as one's
knee can be said to be part of one's leg), and it may need to be
"sewn up", it is important, even crucial, that the communication
between the two entities (here your doctor and the surgeon) be
precise.
Again, this is entirely wrong. The *languages* do not *contain*
the bugs. The languages -- whether COBOL, assembly, Perl, C, or
English -- are merely the medium in which people write faulty
messages. You persist in misusing the jargon, even after people
have told you that you have misused the jargon. This is like going
to the surgeon and asking him to work on the "medial collateral
ligament in my thigh", or -- knowing that it *is* a problem in your
knee -- telling him to "be careful of that achilles tendon while
you are in there" (the achilles tendon connects the calf muscle to
the calcaneus -- the "heelbone").
>You are only arguing semantics because ...
"semantic, adj. of meaning in language" --ibid.
We are arguing semantics because your precise meanings are wrong!
If you want to gronk the robbits, you must first snarkelate the
flembles.
What does the indented sentence above mean? No one can say, and
the reason is "semantics". Syntactically we can see that "gronk"
and "snarkelate" must be verbs -- they must refer to some action
a person can perform. "Robbits" and "flembles" must be predictate
nouns (or adjectives performing as nouns). But we still need to
know what they *mean*!
I really hate this damn machine
I wish that they would sell it
It never does quite what I want
But only what I tell it. -- programmer's lament
Semantics matter. Since computers do what you tell them to, whether
or not that is what you meant, semantics in programming matter
enormously.
>you are unable to sucessfully argue against my main point which is
>that the Perl programming language is Y2K booby trapped.
If you wish to claim that the definition of the "year" element of
localtime() -- "years since 1900" -- is one that "leads programmers
down the garden path", as it were, into assuming that it expresses
instead "last two digits of century", that is fine -- but if you
want to claim that, you must claim *that*, not something else.
It's the dependencies, stupid. -- various posters here
In this case -- as in general with computer programs -- "it's the
semantics."
--
In-Real-Life: Chris Torek, Berkeley Software Design Inc
El Cerrito, CA Domain: torek@bsdi.com +1 510 234 3167
http://claw.bsdi.com/torek/ (not always up) I report spam to abuse@.
------------------------------
Date: Sun, 30 May 1999 09:34:50 GMT
From: Marc.Haber-usenet@gmx.de (Marc Haber)
Subject: Re: FAQ 4.16: Does Perl have a year 2000 problem? Is Perl Y2K compliant?
Message-Id: <7ir0nq$a58$1@news.rz.uni-karlsruhe.de>
torek@elf.bsdi.com (Chris Torek) wrote:
>Again, this is entirely wrong. The *languages* do not *contain*
>the bugs. The languages -- whether COBOL, assembly, Perl, C, or
>English -- are merely the medium in which people write faulty
>messages.
While fully agreeing with you, I'd like to re-word your statement just
again: It isn't English's fault that it's possible to say in correct
English that MVS is a programming language. Asking to modify English
so that such errors are prevented is simply ridiculous.
Greetings
Marc
--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber | " Questions are the | Mailadresse im Header
Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
------------------------------
Date: Sat, 29 May 1999 18:15:54 -0400
From: "Bill Jones" <bill@fccj.org>
Subject: Re: FAQ 4.16: Does Perl have a year 2000 problem? Is Perl Y2K compliant?
Message-Id: <375066f5.0@usenet.fccj.cc.fl.us>
In article <x7btf5k2o6.fsf@home.sysarch.com>, Uri Guttman <uri@sysarch.com>
wrote:
> language and its applications are different! a pencil is not a book. a
> pencil is not libelous but a book can be. same for perl and its
> applications reagrding y2k. what about this do you not grasp.
Damn! My pencil has a Y2k issue! Can anyone help me?!?
On a side note, I am asking the Federal government to
grant me $1,023M to research why pencils actually write
differently for different people. Some people, I have
discovered, can write great code and others seemingly
write code which is buggy and illogical.
Oh, sorry, that fits this group...
/^Humor$/
-Sneex- :]
______________________________________________________________________
Bill Jones Data Security Specialist http://www.fccj.org/cgi/mail?dss
Need to get started in Perl? See http://jacksonville.pm.org/Letter.cgi
------------------------------
Date: Sun, 30 May 1999 16:40:18 +0800
From: "Wing Chow" <kachow@anyemail.com>
Subject: Re: How do I prevent a CGI timeout?
Message-Id: <7iqtfc$bsg$1@hfc.pacific.net.hk>
In order to prevent time out for the browser, modify your webserver time out
parameter. say: if using apache. it should be a directive in httpd.conf.
Timeout 300
set larger number to avoid timeout in a short time.
Wing
Anyemail - Free E-mail Retriever, E-mail Aliases
http://www.anyemail.com/
Dr Marcus Phillips <m.j.phillips@shef.ac.uk> wrote in message
news:7imafd$ncb$1@bignews.shef.ac.uk...
> To anyone who can help...
>
> How do I prevent a perl CGI from timing out and the browser saying
"Document
> contains no data"? I have a data analysis program which on some of the
more
> complicated analysis slows down sufficiently to give this problem. I try
to
> output data regularly via "print" but this does not seem to work. The
> process itself continues even after the browser gives up!
>
> Thanks in advance
>
> Marcus
>
------------------------------
Date: Sat, 29 May 1999 21:51:34 -0400
From: "Bill Jones" <bill@fccj.org>
Subject: Re: HTTP Upload using CGI.pm
Message-Id: <37509962.0@usenet.fccj.cc.fl.us>
In article <7imf97$orc$1@nnrp1.deja.com>, johnand@my-deja.com wrote:
> In article <374C7CE9.1CEEA742@csd.sdl.usu.edu>,
> Neal Barney <nbarney@csd.sdl.usu.edu> wrote:
<snip>
>> 2. Is there anyway using CGI.pm (or any other perl module) to create
> a
>> file upload progress box, similar to the browser download progress
> box?
>> Or must I use JavaScript to accomplish this?
>>
>
> Again, this is a browser issue;
<snip>
This is way off topic now, but the TCL plug-in would
allow you to upload a file and generate a
progress bar until the file upload was finished.
/^Pretty sure$/
-Sneex- :]
______________________________________________________________________
Bill Jones Data Security Specialist http://www.fccj.org/cgi/mail?dss
Need to get started in Perl? See http://jacksonville.pm.org/Letter.cgi
------------------------------
Date: Sun, 30 May 1999 09:37:59 GMT
From: Eric Bohlman <ebohlman@netcom.com>
Subject: Re: Looking for Net::SMTP
Message-Id: <ebohlmanFCJHFB.FLL@netcom.com>
Charles Bartholomew <Charles.Bartholomew@worldnet.att.net> wrote:
: I am looking for the module Net::SMTP.
: I have tried the ActiveState site as well as a couple of others. Although
: the module is listed in the list of available modules I can not find the
: actual module.
It's part of libnet (it depends on a couple other modules in libnet, so
you need to install the whole thing).
------------------------------
Date: Sun, 30 May 1999 05:14:45 GMT
From: smnayeem@my-deja.com
Subject: Re: Making executables from .pl files?
Message-Id: <7iqhg6$6l0$1@nnrp1.deja.com>
In article <9Uc13.728$kn3.17717@nntp1>,
Jared Hecker <jhecker@iago.nac.net> wrote:
> smnayeem@my-dejanews.com wrote:
> > say i name it mail.pl and the exe i make with perl2exe is mail.exe
> > what happens is at one stage the following error comes up :
>
> > Global symbol "%NetConfig" requires explicit package name at
Net/SMTP.pm
> > line 29.
>
> Are you able to run this package with 'use strict'? Whenever I have
had
> this problem it is becuase I did not explicitly label a local ('my')
> variable.
well i fixed the above error by adding the package name before the
%Netconfig variable. but then i got another error :
Global symbol "%NetConfig" requires explicit package name at
PERL2EXE_STORAGE/Net/Domain.pm line 84.
i checked the domain.pm file (theres only one copy of this file in my
whole hard disk) and at line 84 i ddnt find anything that looks like
%NetConfig. however at some lines later on i found %Netconfig, here too
i added the package names before it, but this time it ddnt do the trick.
and i tried using the strict and -w too but cant seem to solve the
problem still (the .pl runs but the .exe doesnt).
any ideas? anyone?
smnayeem
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Sun, 30 May 1999 08:29:01 +0100
From: Andrew Fry <andrewf@beausys.demon.co.uk>
Subject: Perl/Tk
Message-Id: <P408rBA9iOU3Ewny@beausys.demon.co.uk>
I cant seem to find much about Perl/Tk on the web.
Anyone know of any sites with good tutorials
and/or sample scripts ? Thanks.
Also, I understand that Perl/Tk isnt (yet) part of
the 'standard' Perl distribution. Is that correct ?
If it isnt, does this imply that it isnt completely
stable yet ?
---
Andrew Fry
"Time flies like an arrow. Fruit flies like a banana". (Groucho Marx).
------------------------------
Date: Sun, 30 May 1999 09:41:38 GMT
From: Eric Bohlman <ebohlman@netcom.com>
Subject: Re: Perl/Tk
Message-Id: <ebohlmanFCJHLE.Fvp@netcom.com>
Andrew Fry <andrewf@beausys.demon.co.uk> wrote:
: Also, I understand that Perl/Tk isnt (yet) part of
: the 'standard' Perl distribution. Is that correct ?
Yes.
: If it isnt, does this imply that it isnt completely
: stable yet ?
No. The reason it isn't part of the standard distribution, and is
unlikely to ever be, is that a) it's quite big and b) there are plenty of
people who need to write Perl programs but don't need to create GUIs for
them.
------------------------------
Date: Sun, 30 May 1999 07:27:22 GMT
From: Kevin Miller <info11@home.com>
Subject: Please guide me!
Message-Id: <3750E908.893F79E3@home.com>
Hello Perl People,
I'm a Linux user and would like to do some Perl programming. Can you
please point to the right information so I don't have to learn the whole
Perl language to design my idea.
I want to build a site that collects user data via the web and then
recall the info back into a web page that can be edited then submitted.
The user data would be called via a user name and password. The site
will be creating a huge user database as well. So I was thinking of
using MySQL for the DB.
I would also like to design nice html tags around it to make it look
nice. I know that the HTML tags need to be embedded into the Perl
script.
Can I find this pre-build, or do I have to create it from scratch.
Thanks for you time,
Kevin Miller
Infograb.com
------------------------------
Date: Sun, 30 May 1999 00:43:40 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Please guide me!
Message-Id: <Pine.GSO.4.02A.9905300043001.8345-100000@user2.teleport.com>
On Sun, 30 May 1999, Kevin Miller wrote:
> I'm a Linux user and would like to do some Perl programming. Can you
> please point to the right information so I don't have to learn the
> whole Perl language to design my idea.
Start with the FAQ, which has information about this. Cheers!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Sat, 29 May 1999 23:40:58 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Please help on RegXpression
Message-Id: <MPG.11ba7d42b8d6395d989b34@nntp.hpl.hp.com>
[Posted and a courtesy copy mailed.]
In article <7iqgis$65r$1@nnrp1.deja.com> on Sun, 30 May 1999 04:59:07
GMT, tvn007@my-deja.com <tvn007@my-deja.com> says...
> Would someone help me on regular expression ?
>
> Here is the data:
>
> ########################
>
> NAME john bob tom tina matt charles;
>
> ################
>
> I would like to have the output as follow:
> (in other word, all names store in variable $all_name)
>
> $all_name : john bob tom tina matt charles
Did you try to work this out for yourself? It isn't very hard if you
have studied the basics of regular expressions.
There are many ways to do it. Here's one (assuming the data are in $_):
my $all_name = $1 if /\s+([^;]+)/;
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Sun, 30 May 1999 06:14:50 GMT
From: kawaii_1@hotmail.com (ace)
Subject: REMOTE_USER - How come I can't see it?
Message-Id: <3750d69e.30161498@news-server>
Hello.
I'm trying to write a perl script that returns the REMOTE_USER env
variable but for some reason it can't read it. I've tried several
test scripts that print out all of the vars but REMOTE_USER never
shows up? Does anyone know why this might happen?
I call the script from a password protected area and expect the
REMOTE_USER to show what id I logged in with but I always get nothing.
I tried the following code and it prints out a lot of info but no
REMOTE_USER.
Any help is appreciated.
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
print "<tt>\n";
foreach $key (sort keys(%ENV)) {
print "$key = $ENV{$key}<p>";
}
Thanks for the help.
Ace
====
------------------------------
Date: Sat, 29 May 1999 23:16:44 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: REMOTE_USER - How come I can't see it?
Message-Id: <Pine.GSO.4.02A.9905292313510.13014-100000@user2.teleport.com>
On Sun, 30 May 1999, ace wrote:
> I'm trying to write a perl script that returns the REMOTE_USER env
> variable but for some reason it can't read it. I've tried several
> test scripts that print out all of the vars but REMOTE_USER never
> shows up? Does anyone know why this might happen?
It sounds as if your webserver isn't setting this. If it's supposed to,
that's a bug in the server (or its configuration). If it's not, there's
your problem. If you're not sure whether it should, check with the docs,
FAQs, and newsgroups about your webserver and webservers in general. Good
luck!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 30 May 1999 10:55:00 +0200
From: kaih=7HpeDiPmw-B@khms.westfalen.de (Kai Henningsen)
Subject: Slow, or looping?
Message-Id: <7HpeDiPmw-B@khms.westfalen.de>
While debugging my Mail-and-News converter, I happened upon the following
(it's in Mail::Address):
$_ = '"Kirsten R. Chevalier, R for RIGHTEOUSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS"'
s/(([a-z]+|[a-z]\-[a-z])+)\s*,?\s*(([a-z]\s*\.\s*)+)(\[^\sa-z]|\Z)/$3 $1/io; # change Barr, G. M. => G. M. Barr
Trying to single-step through that line (under -d) seems to hang. (And
running without the debugger is already hanging for some hours.)
Now, is this an endless loop somewhere, or just a *really* slow regex?
Kai
--
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
- Russ Allbery (rra@stanford.edu)
------------------------------
Date: Sun, 30 May 1999 02:26:57 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Slow, or looping?
Message-Id: <Pine.GSO.4.02A.9905300221060.8345-100000@user2.teleport.com>
On 30 May 1999, Kai Henningsen wrote:
> $_ = '"Kirsten R. Chevalier, R for RIGHTEOUSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS"'
>
> s/(([a-z]+|[a-z]\-[a-z])+)\s*,?\s*(([a-z]\s*\.\s*)+)(\[^\sa-z]|\Z)/$3 $1/io; # change Barr, G. M. => G. M. Barr
>
> Trying to single-step through that line (under -d) seems to hang. (And
> running without the debugger is already hanging for some hours.)
>
> Now, is this an endless loop somewhere, or just a *really* slow regex?
It's easy to make a RE which will take millions of years to realize that
it won't match. I think that's one such. See "Mastering Regular
Expressions" for more information about those. Good luck!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Sat, 29 May 1999 23:16:25 -0700
From: "Dave Roth" <xrxoxtxhxdx@xrxoxtxhx.xnxextx>
Subject: Re: to see who is online
Message-Id: <qF443.35075$pj7.331069@news2.giganews.com>
bababozorg@aol.com wrote in message <7immhf$ugm$1@nnrp1.deja.com>...
>hi
>i was wondering if there is any way that i can see who is in my website
>right now and display the details of that person, or if he is my member
>how can i know he is online right now!.
>i did try to make a file in the tmp dir when my users came online.
>but i didnt know how to remove that file afterwards when they go
>offline or go to another website. i tryed to pass them to a script that
>removes the file after they closed the page or onloaded the page by
>javascirpt, but i cant really trust the javascript and it didnt work
>70% ofthe time :)
>i thought there must be a way to do this with cgi even using shell
>things :)
>can you please tell me if there is any way to make it work? or see the
>members online (in separat page) when they logged in to my website?
>(i also use the htaccess login at the moment)
A simple way to do this is to open a DOS box (presuming you are
on an NT box -- most UNIX folks would not ask this question) and
run the NETSTAT application.
It will dump all open TCP/UDP sockets that are open on your box.
You can have it display the (reverse) DNS name of the foreign
machine. This is about as close as you are going to get without
using some proprietary web server thingie. If you are using IIS
you can have the server dump all connections to an ODBC database
or a text file. But there is usually a delay between when a
connection is made and info on the connection is stored into the
database (IIS caches the info and purges it only occasionally to
save processor overhead).
Additionally bear in mind that HTTP connections are stateless
hence someone will only be connected for as long as it takes the
server to dump the query results to him. This is typically somewhere
in the magnitude of milliseconds (unless, of course, HTTP keepalive
is active and in use).
I am also assuming by "member" you mean the user conneting to the
web site has authenticated and is a "member" of a given NT group.
The only way to discover this is to either collect the info using
session and/or application scripts or to check the logs for a
specified user name.
dave
--
=================================================================
Dave Roth ...glittering prizes and
Roth Consulting endless compromises, shatter
<rothd at roth dot net> the illusion of integrity
http://www.roth.net
Win32, Perl, C++, ODBC, Training
Our latest Perl book is now available:
"Win32 Perl Programming: The Standard Extensions"
http://www.roth.net/books/extensions/
------------------------------
Date: Sun, 30 May 1999 16:45:19 +0800
From: "Wing Chow" <kachow@anyemail.com>
Subject: Re: Uploading image files..
Message-Id: <7iqtop$bub$1@hfc.pacific.net.hk>
if you mean upload file from Web page form. the most possible you miss the
ENCTYPE in the Form TAG of your html.
for example:
<form method="POST" action="cgi_url" ENCTYPE="multipart/form-data">
otherwise the file body will be in zero size. only got the file handle (File
name).
Wing
Anyemail - Free E-mail Retriever, E-mail Aliases
http://www.anyemail.com/
Terra Landry <terral@cyberplex.com> wrote in message
news:7ijr91$72u$1@bignews.fundy.net...
> I want to upload images in perl... I have it uploading, but it saves an
> empty file, so I'm not sure what I'm doing wrong... can anyone help me by
> giving me an example of a file upload??
>
> Thank you,
> Terra
>
>
>
------------------------------
Date: Sun, 30 May 1999 00:08:49 -0400
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: Re: Y2K. localtime(time)
Message-Id: <19990530.000849.1w5.rnr.w164w@locutus.ofB.ORG>
Eric Bohlman <ebohlman@netcom.com> writes:
>> It prints 100, instead of 2000 or 00.
>
> The documentation for localtime says, and I quote: "$year is the number
> of years since 1900."
>
> I'd really like to know *why* so many people have a mental block about
> this. The description in localtime()'s documentation leaves not the
> slightest room for interpretation, but for a lot of people it goes in
> one eye and out the other.
I've seen very little justification for that; I think it is far more
likely that people are simply not bothering to read the documentation.
As you say, the documentation does not leave much room for
misunderstanding; therefore, it is far more likely it was never
involved in the first place.
> I'm sorry to have to say this, but if you do not know how localtime()
> returns date information, and you either do not know how to consult the
> documentation to find out how it does so ... [bad things]
Exactly.
Of course, the point of requiring documentation of such poorly designed
interfaces is to make it sink in that it's a bad interface, and that
instead of writing a lot of documentation to warn people about it, the
time should be spent fixing it. Unfortunately, with C (and thus, quite
understandably alas, Perl), that was never done.
And quite unlike what the Perl FAQ would have you believe, no pencil
known to mankind has ever surprised someone by writing `100' when the
person using it expected something different.
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
------------------------------
Date: Sun, 30 May 1999 01:06:41 -0400
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: Re: Y2K. localtime(time)
Message-Id: <19990530.010641.2A4.rnr.w164w@locutus.ofB.ORG>
norm@turing.une.edu.au (Norman Gaywood) writes:
> ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
> $long_date = "$months[$mon] $mday, 19$year at $hour\:$min\:$sec";
>
> local( $millenium ) = '19';
> # Avoid Y2000 problem
> if ($year > 70) { $millenium = '20'; }
> $today = "$days[$wday], $months[$mon] $mday, $millenium$year";
> I still can't believe that people write code like this!
Go easy on them -- it was, what, 25 years ago? They thought using
year-1900 was making life easier for as long as possibly relevant.
Or something.
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
------------------------------
Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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 5833
**************************************