[11492] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 5092 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Mar 9 06:07:24 1999

Date: Tue, 9 Mar 99 03:00:18 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Tue, 9 Mar 1999     Volume: 8 Number: 5092

Today's topics:
        &ReadParse fails with ActiveState Perl on Win95 <steinhbl@de.ibm.com>
        About Numerical Analysis with perl <ysko@charly.kjist.ac.kr>
    Re: ActivePerl - How to drag and drop? (Jonathan Stowe)
    Re: ADO, Working Example mwilliams@europarl.eu.int
    Re: cobol line seq. file - one very long line - <sugalskd@netserve.ous.edu>
    Re: Continue Script After Error? (Tad McClellan)
    Re: Continue Script After Error? (Bart Lateur)
        DBD::Oracle "make test" failed on Linux Suse 5.3 <dewez@student.prov-liege.be>
        FAQ 3.10: Where can I get Perl macros for vi?   <perlfaq-suggestions@perl.com>
        FAQ 3.11: Where can I get perl-mode for emacs?   <perlfaq-suggestions@perl.com>
    Re: foreach question (J|rgen P|nter)
    Re: Hotmail style mail system needed <Dikheel@ResumeGuide.com>
    Re: How to do a Case-insensitive Sort? (Bart Lateur)
    Re: Newbie Perl for NT question (Mark Scherf)
        opinion please <gene@genedavis.com>
    Re: opinion please <gene@genedavis.com>
        Perl resources <kar@webline.dk>
    Re: Perl Thread Tutorials/Examples?? <sugalskd@netserve.ous.edu>
        Perl Web Statistics <adriana.ramirez-pastrana@ubs.com>
    Re: s/\n\s// don't work (Bart Lateur)
        Search Text DB file with results... <leemi@iobn.com>
    Re: Sendmail <jbc@shell2.la.best.com>
    Re: The millennium cometh -- eventually <Russell_Schulz@locutus.ofB.ORG>
    Re: y2k and 4-digit dates (was Re: foreach and while) <Russell_Schulz@locutus.ofB.ORG>
    Re: y2k and 4-digit dates (was Re: foreach and while) <Russell_Schulz@locutus.ofB.ORG>
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Tue, 9 Mar 1999 11:45:01 +0100
From: "Oliver Steinhuebel" <steinhbl@de.ibm.com>
Subject: &ReadParse fails with ActiveState Perl on Win95
Message-Id: <7c2sg4$1jp4$1@news.uk.ibm.com>

Hi,
&ReadParse function from cgi-lib.pl fails returning variables. Seems it
stops elsewhere in the function. &PrintHeader works fine. I think its the
funktion in cunjunction with the active state perl port...the cgi module
works fine.

I want to develop on my WIN95 then transfer the perl script to our unix
server, so I cant using the module.

Any ideas




------------------------------

Date: Tue, 09 Mar 1999 16:42:25 +0900
From: Koh Yeonseok <ysko@charly.kjist.ac.kr>
Subject: About Numerical Analysis with perl
Message-Id: <36E4D0E1.877DFDE7@charly.kjist.ac.kr>


--------------2BFD9C785B35CE96BC41CE1E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi.

I am going to solve some mathmatical problems with perl.
There are some perl modules on numerical analysis but I could not find
out the Gamma and Bessel functions.

Do you have any  information about these ?

Thanks.

--
Lab : ComNet,Info_Comm, K-JIST
Address : 1 Oryongdong Bukgu Kwangju, Korea
Name : Koh, Youn-Seok
Email : ysko@charly.kjist.ac.kr



--------------2BFD9C785B35CE96BC41CE1E
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Hi.
<P>I am going to solve some mathmatical problems with perl.
<BR>There are some perl modules on numerical analysis but I could not find
out the Gamma and Bessel functions.
<P>Do you have any&nbsp; information about these ?
<P>Thanks.
<PRE>--&nbsp;
Lab : ComNet,Info_Comm, K-JIST
Address : 1 Oryongdong Bukgu Kwangju, Korea
Name : Koh, Youn-Seok&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Email : ysko@charly.kjist.ac.kr</PRE>
&nbsp;</HTML>

--------------2BFD9C785B35CE96BC41CE1E--



------------------------------

Date: Tue, 09 Mar 1999 09:53:16 GMT
From: gellyfish@btinternet.com (Jonathan Stowe)
Subject: Re: ActivePerl - How to drag and drop?
Message-Id: <36e4ef11.3521867@news.dircon.co.uk>

On 8 Mar 1999 19:52:25 -0600, nneul@static-nneul.rollanet.org (Nathan
Neulinger) wrote:

>Is there any straightforward way to set up a perl script that can accept
>drag and drop of files?
>
>Ideally, I'd like to be able to have it handled the same way as @ARGV and <>, 
>but a Win32 specific module would be ok.
>

Create your script as usual, then run pl2bat on it to create a BAT
file, place this on your desktop (or wherever) and thats it - it just
works you can drag a file onto the batch files icon and away you go
 ..

/J\


------------------------------

Date: Tue, 09 Mar 1999 08:22:23 GMT
From: mwilliams@europarl.eu.int
Subject: Re: ADO, Working Example
Message-Id: <7c2lno$rdv$1@nnrp1.dejanews.com>

Working example of ASP (applies elsewhere) that connects to Access, remember
that you need to define the ODBC data source first,and the security if any,
test this using MS Query ( Or such like)
HTH
<Snip>


$tempo=sprintf("SELECT Problems.Product, Problems.[Reported On],
                               Problems.[Reported By], Problems.Description,
                               Problems.Severity, Problems.[Person In Charge],
                               Problems.Priority, Problems.Status,
Problems.Remarks FROM problems WHERE (((Problems.Status)='Closed'))");


	$Conn = $Server->CreateObject("ADODB.Connection");
	$Conn->Open("PROBDB","USER","PAssword ");



if(!$Conn) {
	$Errors = $Conn->Errors();
	print "Errors:\n";
	foreach $error (keys %$Errors) {
		print $error->{Description}, "\n";
         }
	 die "coldnt't conn";
         }

        $RS = $Conn->Execute($tempo);

 if(!$RS) {
	$Errors = $Conn->Errors();
	print "Errors:\n";
	foreach $error (keys %$Errors) {
	print $error->{Description}, "\n";
         }
	 die;
         }


In article <36e028ae.0@145.227.194.253>,
  "Noel Sant" <noel.sant@icl.com> wrote:
> I have a problem with ADO & OLE, too, but on Win95, and one step further on.
> My code:
>
>  $connection = Win32::OLE->new("ADODB.Connection");
>  $connection->Open("DSN=C:\\Chorus.dsn;UID=Noel;PWD=noel") or die
> Win32::OLE::LastError(), "\n";
>
> Gives an error:
>
> OLE exception from "Microsoft OLE DB Provider for ODBC Drivers":
>
> [Microsoft][ODBC Driver Manager] Data source name not found and no default
> driver specified
>
> Win32::OLE::0.0810 error 0x80004005: "Unspecified error"
>     in methodcall/getproperty "Open"
>
> The DSN is one I use successfully with Access97, linking to MS SQL Server
> 6.5, which I've copied from the normal directory because when I put the full
> path it says "... too long." And when I put it in the same directory as the
> program, which I've CD'd too from the DOS prompt to run my script, and
> remove the "C:\\", it still can't find it.
>
> I think I may be getting the wrong end of the stick here somewhere. I've
> installed DCOM95 & MDAC 2.0 - I hope that's enough to give me ADO. But
> presumably I wouldn't get beyond the connection if I hadn't.
>
> Can anyone help, please?
>
> Thanks in anticipation,
>
>         Noel Sant
>
> Rick Hensh wrote in message <7bic8a$f84$1@msunews.cl.msu.edu>...
> >Try this line instead in the appropriate place below:
> >
> >    $conn = Win32::OLE->new("ADODB.Connection")
> >
> >hth
> >ricky
> >
>
>

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


------------------------------

Date: 9 Mar 1999 06:18:40 GMT
From: Dan Sugalski <sugalskd@netserve.ous.edu>
Subject: Re: cobol line seq. file - one very long line -
Message-Id: <7c2eg0$rnp$1@news.NERO.NET>

Dale Phillips <dp@lore.org> wrote:
: I have a cobol line sequential file that I need
: to parse up into record length of 57 each.... 

: This has got to be brain dead easy but I 
: can not seem to find anything that 
: counts x chars from slurped file and add \r start counter over .... 

	use 5.005;
	$/ = \57;
	while(<>) {
	   # $_ is your record in here...
	}

						Dan


------------------------------

Date: Mon, 8 Mar 1999 19:23:35 -0500
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Continue Script After Error?
Message-Id: <7mp1c7.rv1.ln@magna.metronet.com>

pault2000@my-dejanews.com wrote:

: I am pretty new to Perl and I would appreciate some advice on a script I am
: writing - it runs through a directory tree and makes changes to html files
: using a regular expression. The script works fine but if it comes across a
: corrupt html file (e.g. one which has not been ftp'd properly and has ended
: up as zero k) the script grinds to a halt. Could anyone advise me as to how
: to get the script to continue if a problem arises.


   "a problem" or "the problem of a zero byte file"?


: foreach $file (sort { -M "$dir_path/$a" <=> -M "$dir_path/$b" } @files) {


   If you just want to eliminate empty files, you can do that right here:

    foreach $file (grep -s, sort { -M "$dir_path/$a" <=> -M "$dir_path/$b" } 
                                 @files) {


--
    Tad McClellan                          SGML Consulting
    tadmc@metronet.com                     Perl programming
    Fort Worth, Texas


------------------------------

Date: Tue, 09 Mar 1999 08:34:17 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Continue Script After Error?
Message-Id: <36e7d54a.2420654@news.skynet.be>

pault2000@my-dejanews.com wrote:

>I am pretty new to Perl and I would appreciate some advice on a script I am
>writing - it runs through a directory tree and makes changes to html files
>using a regular expression. The script works fine but if it comes across a
>corrupt html file (e.g. one which has not been ftp'd properly and has ended
>up as zero k) the script grinds to a halt. Could anyone advise me as to how
>to get the script to continue if a problem arises.

Do you mean it hangs, or it stops? If it stops, there's a simple
solution: eval {}.

Call the whole processing of ONE file in an eval BLOCK. If the code
fails, eval exits with $@ containing the error text. You can continue
with the next file anyway.


	while(defined($file = shift)) {
		eval { &process($file) };
		&log("Error for $file: $@} if $@;
	}

	Bart.


------------------------------

Date: Tue, 09 Mar 1999 10:25:43 +0100
From: Georges Dewez <dewez@student.prov-liege.be>
Subject: DBD::Oracle "make test" failed on Linux Suse 5.3
Message-Id: <36E4E916.2AC7142E@student.prov-liege.be>

Hi,

 I  Can't build the DBD::Oracle on Linux  Suse 5.3.
 Sqlplus work fine, i can connect to a remote Oracle db.

I use :

DBD-Oracle-0.59
DBI-1.06
perl5.005_02
Oracle 8.0.5 (patch1,patch2)
Suse 5.3 (opatch.rpm)

My env. for Oracle 8 for "make test"

LD_RUN_PATH= /opt/oracle/8.0.5/lib
ORACLE_BASE = /opt/oracle
ORACLE_HOME = /opt/oracle/8.0.5
ORACLE_SID = orcl
ORACLE_TERM = vt100
ORACLE_USERID = scott/tiger

 I describe all (DBI and DBD) install sequence :

1. DBI 1.06 "make test" OK and installed
        /usr/lib/perl5/site_perl/i586-linux/auto/DBI

2. DBD Oracle 0.59

 ->> /root/install/perl/module/DBD-Oracle-0.59/perl Makefile.pl
-- cut perlMakefile.pl.log ---
Note (probably harmless): No library found for -lnsl   (???)
Using DBI 1.06 installed in /usr/lib/perl5/site_perl/i586-linux/auto/DBI

 Configuring DBD::Oracle ...
 [...]
Checking if your kit is complete...
Looks good
[...]
Using DBD::Oracle 0.59.
Using DBI 1.06 installed in /usr/lib/perl5/site_perl/i586-linux/auto/DBI

Writing Makefile for DBD::Oracle
-- end cut  --------------

 ->> make
-- cut make.log ---
mkdir ./blib
[...]
LD_RUN_PATH="/opt/oracle/8.0.5/lib:/lib" cc -o
blib/arch/auto/DBD/Oracle/Oracle.so  (OK)
[...]
"MY->fixin(shift)" ./blib/script/ora_explain
-- end cut -------

 ->> /root/install/perl/module/DBD-Oracle-0.59/make test
-- cut  of maketest.log  -----
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.00502/i586-linux -I/usr/lib/perl5/5.00502 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t

t/base..............dubious
        Test returned status 0 (wstat 11, 0xb)
t/general...........dubious
        Test returned status 0 (wstat 11, 0xb)
t/plsql.............dubious
        Test returned status 0 (wstat 11, 0xb)
FAILED--3 test scripts could be run, alas--no output ever seen
make: *** [test_dynamic] Error 2
---end cut -------

 ->>/root/install/perl/module/DBD-Oracle-0.59/ make test TEST_VERBOSE=1
  idem. "make test"

 Thanks for all the help.

    Georges.



------------------------------

Date: 9 Mar 1999 00:43:45 -0700
From: Tom Christiansen <perlfaq-suggestions@perl.com>
Subject: FAQ 3.10: Where can I get Perl macros for vi?  
Message-Id: <36e4d131@csnews>

(This excerpt from perlfaq3 - Programming Tools 
    ($Revision: 1.33 $, $Date: 1998/12/29 20:12:12 $)
part of the standard set of documentation included with every 
valid Perl distribution, like the one on your system.
See also http://language.perl.com/newdocs/pod/perlfaq3.html
if your negligent system adminstrator has been remiss in his duties.)

  Where can I get Perl macros for vi?

    For a complete version of Tom Christiansen's vi configuration
    file, see
    http://www.perl.com/CPAN/authors/Tom_Christiansen/scripts/toms.ex
    rc.gz, the standard benchmark file for vi emulators. This runs
    best with nvi, the current version of vi out of Berkeley, which
    incidentally can be built with an embedded Perl interpreter --
    see http://www.perl.com/CPAN/src/misc.

-- 
    Be consistent.
            --Larry Wall in the perl man page 


------------------------------

Date: 9 Mar 1999 03:13:53 -0700
From: Tom Christiansen <perlfaq-suggestions@perl.com>
Subject: FAQ 3.11: Where can I get perl-mode for emacs?  
Message-Id: <36e4f461@csnews>

(This excerpt from perlfaq3 - Programming Tools 
    ($Revision: 1.33 $, $Date: 1998/12/29 20:12:12 $)
part of the standard set of documentation included with every 
valid Perl distribution, like the one on your system.
See also http://language.perl.com/newdocs/pod/perlfaq3.html
if your negligent system adminstrator has been remiss in his duties.)

  Where can I get perl-mode for emacs?

    Since Emacs version 19 patchlevel 22 or so, there have been both
    a perl-mode.el and support for the perl debugger built in. These
    should come with the standard Emacs 19 distribution.

    In the perl source directory, you'll find a directory called
    "emacs", which contains a cperl-mode that color-codes keywords,
    provides context-sensitive help, and other nifty things.

    Note that the perl-mode of emacs will have fits with `"main'foo"'
    (single quote), and mess up the indentation and hilighting. You
    are probably using `"main::foo"' in new Perl code anyway, so this
    shouldn't be an issue.

-- 
    "You can't have filenames longer than 14 chars.  
     You can't even think about them!"
        --Larry Wall in Configure from the perl distribution


------------------------------

Date: 9 Mar 1999 06:35:32 GMT
From: Juergen.Puenter@materna.de (J|rgen P|nter)
Subject: Re: foreach question
Message-Id: <7c2ffk$9hr$1@penthesilea.Materna.DE>

In article <36E48A55.8780D43C@gate.net>, amwalker@gate.net says...
>
>@dir = ("/www/htdocs");

Why the array? Are there other directories you might
want to put in there?


>$ls = `ls $dir[0]`;
>@ls_output = $ls;

What do you need the $ls for? Depending on whether you need
@dir, this works too: @ls_output = `ls $dir[0]`.


HTH
	Juergen Puenter



------------------------------

Date: Tue, 09 Mar 1999 06:00:46 -0500
From: Dikheel Al-Dikheel <Dikheel@ResumeGuide.com>
Subject: Re: Hotmail style mail system needed
Message-Id: <36E4FF5E.40107FAC@ResumeGuide.com>

> We are currently using a Virtual Hosting service and not our own dedicated
> server.  However we do have unlimited POP mail privledges.

Although I don't know of any Hotmail like system, I would like to bring your
attention to the following since you are using Virtual Hosting. Email POP account
take a lot of space, I have had some friends who paid a lot for about 1.3G of
space with thier provider when they offered free emails. so take that into
consideration ;-)

They used "emumail" I think the address is www.emumail.com

-Dikheel



------------------------------

Date: Tue, 09 Mar 1999 08:34:16 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: How to do a Case-insensitive Sort?
Message-Id: <36e6d444.2158552@news.skynet.be>

Ronald J Kimball wrote:

>Here, it appears that lc() is slower than array access through a
>reference.
>
>Of course, that's with a somewhat lengthy string.  What if $uc is, say,
>empty?

That's the whole point. lc() is slow for very large strings. (n log n)
is big for large n. So for small sets and small strings, expect faster
execution for the simple approach, because of the lack of overhead.

	Bart.


------------------------------

Date: Tue, 09 Mar 1999 09:31:16 GMT
From: mscherf@bigpond.com (Mark Scherf)
Subject: Re: Newbie Perl for NT question
Message-Id: <36e4ea31.2091543@news.bigpond.com>


On Sun, 7 Mar 1999 15:33:32 -0500, "Mike Begeman"
<mike_begeman@theprairie.com> wrote:

>I installed Perl on our NT server (IIS3).  When I click on link in IE or
>Netscape that is supposed to run a perl script, it brings up the dialog for
>downloading the file (testperl.pl).  Is there something I have to do to IIS3
>to get it to run the script?
>
>Mike Begeman
>
>

If you goto  http://www.geocities.com/SiliconValley/Park/8312/ you
will find out how to setup IIS3 to run perle

Mark Scherf


------------------------------

Date: Mon, 08 Mar 1999 22:28:20 -0700
From: Gene <gene@genedavis.com>
Subject: opinion please
Message-Id: <36E4B173.8758A252@genedavis.com>

I've just finished writing this chat program. The back end is perl. (Of
course, anything important was written in perl:)

Anyway, if someone would please glance at it and give me an opinion as
to whether I should continue on in developing it, or give it up, I'd
appreciate it.



------------------------------

Date: Mon, 08 Mar 1999 22:32:26 -0700
From: Gene <gene@genedavis.com>
Subject: Re: opinion please
Message-Id: <36E4B268.D96B3368@genedavis.com>

http://www.genedavis.com/chat/index.html


Gene wrote:

> I've just finished writing this chat program. The back end is perl. (Of
> course, anything important was written in perl:)
>
> Anyway, if someone would please glance at it and give me an opinion as
> to whether I should continue on in developing it, or give it up, I'd
> appreciate it.



------------------------------

Date: Tue, 09 Mar 1999 11:01:35 +0100
From: Kaare Rasmussen <kar@webline.dk>
Subject: Perl resources
Message-Id: <36E4F17F.47C14860@webline.dk>

There's of course CPAN, www.perl.org/com and the newsgroups.

But I thougth it would be nice if there was a web based news letter like
javaworld does it, the linux gazette and so on.

Did anyone start this already and I missed it?

(No, don't tell me to start one if I want one. I haven't got the time
that it takes)



------------------------------

Date: 9 Mar 1999 06:43:51 GMT
From: Dan Sugalski <sugalskd@netserve.ous.edu>
Subject: Re: Perl Thread Tutorials/Examples??
Message-Id: <7c2fv7$rnp$2@news.NERO.NET>

Steve Wells <wells@cedarnet.org> wrote:
: Can anyone direct me to a FAQ, Tutorial or more Examples concerning
: perl threads?  I have looked in the usual places and checked out the
: tests that come with the modules but I need a little more.  

There's an article in issue #10 of The Perl Journal. You could see about
scaring up a copy of that (try www.tpj.com) or check out perlthrtut.pod in
the latest beta. (5.005_56) It's more or less the article as it appeared
in TPJ. (Hopefully it'll be cleaned up and expanded before 5.006 gets
released)

					Dan


------------------------------

Date: Tue, 09 Mar 1999 10:54:32 +0100
From: Adriana Ramirez-Pastrana <adriana.ramirez-pastrana@ubs.com>
Subject: Perl Web Statistics
Message-Id: <36E4EFD8.B2C29D29@ubs.com>

I am looking for a efficient PERL-APPLICATION for generate
automatic statistics and graphics.
What I need is to generate daily statistics form a txt.file with 2
values.


------------------------------

Date: Tue, 09 Mar 1999 08:34:19 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: s/\n\s// don't work
Message-Id: <36e8d711.2874829@news.skynet.be>

Manfred Brunner wrote:

>I just want to substitute from stdin all newline followed by whitespace
>beginning in the next line, with nothing.

>while (<STDIN>) {
>        s/\n\s//g;
>        print $_;
>}

"\n" is always the last character in each string. Of course it won't
work.

If $_ was the WHOLE file (set $/ to undef), I'd expect it to work.

But what you really want is probably something like:

	s/^ //;

	Bart.


------------------------------

Date: Mon, 08 Mar 1999 23:13:06 -0800
From: Mike Lee <leemi@iobn.com>
Subject: Search Text DB file with results...
Message-Id: <36E4CA02.FFB139D2@iobn.com>

Hi !,

Does anyone know how to make a DB search with the results look like
AltaVista
???
( I mean it just output for 10 and have next for more results).

If anyone know, Please send me the eg script at leemi@iobn.com .

Thanks.
Mike Lee

PS: my text DB look like this

http://www.url.com/index.html|Dec|Date|0
http://www.lru.com/index.htm|Dec|Date|0

Again Thank for your help!
Mike Lee



------------------------------

Date: 09 Mar 1999 06:09:12 GMT
From: John Callender <jbc@shell2.la.best.com>
Subject: Re: Sendmail
Message-Id: <36e4bb08$0$206@nntp1.ba.best.com>

Rajan Alexander <raj@nyct.net> wrote:
> I am using Matt Kruse's sendmail script and it gives the error "Broken
> Pipe" without a line number.  Here are most likely the offending lines:

> open (SENDMAIL,"$SENDMAIL") || die "Ain't Gonna Happen";

> Does anyone have any experience with this?  I am using my ISP's server.

Actually, I think you should also include the line where the $SENDMAIL
variable is initialized. Presumably you're opening a pipe to the
sendmail program, though I don't see it in the open statement. It might
be in the $SENDMAIL variable, though that would strike me as a kind of
odd way to do it.

-- 
John Callender
jbc@west.net
http://www.west.net/~jbc/


------------------------------

Date: Tue, 9 Mar 1999 00:12:01 -0500
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: Re: The millennium cometh -- eventually
Message-Id: <19990309.001201.3R9.rnr.w164w@locutus.ofB.ORG>

"Bill Jones" <bill@fccj.org> writes:

> Besides, why does this matter at all?

some people get into a snit when they hear y2k referred to as the
`millenium bug'.  (in 100 years will we be fighting the `century bug'
and have people in a snit because it won't be the end of the 21st
Century for another 12 months...?)

> And what, specifically does this have to do with Perl ?

as I mentioned in my post, perl is one of the languages saddled with
the Least Useful Representation; one where doing the Right Thing is
as hard as or harder than doing the Wrong Thing.

this is why I disagree with the FAQ's insistence that `perl has as much
or as little of a y2k problem as a pencil does'.
-- 
Russell_Schulz@locutus.ofB.ORG  Shad 86c


------------------------------

Date: Tue, 9 Mar 1999 00:17:41 -0500
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: Re: y2k and 4-digit dates (was Re: foreach and while)
Message-Id: <19990309.001741.0Y0.rnr.w164w@locutus.ofB.ORG>

Staffan Liljas <staffan@ngb.se> writes:

>> actually, for the overwhelming majority of cases (AD1-AD9999), [4 digit
>> dates do fix everything]
>
> Actually, AD1-AD9999 isn't really the overwhelming majority of all
> cases. The Universe has existed for about 2E10 years, and is likely to
> exist for at least that many more, so 1E4 years is only a 2.5E-7 part of
> all years, not really a majority.

I never said AD1-9999 are the overwhelming majority of dates.

> However, it might be the overwhelming majority of cases YOU need to
> consider.

for the overwhelming majority of cases ANYONE has to consider, I believe
4 digit AD dates are the solution.

obviously, that's not enough for Biblical scholars.  nor for people
predicting the heat death of Sol.  nor for ... well, there's got to
be OTHER people for whom it's not enough.

but in the overwhelming majority of the cases under consideration, even
including these people, it is enough.

> And there was a Y1.9K problem

there has been for a long time.  when did you first hear about a 106
year old person getting a mailed notice reminding him/her that school
was starting, and he/she'd better be ready to attend?
-- 
Russell_Schulz@locutus.ofB.ORG  Shad 86c


------------------------------

Date: Tue, 9 Mar 1999 00:22:12 -0500
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: Re: y2k and 4-digit dates (was Re: foreach and while)
Message-Id: <19990309.002212.8G9.rnr.w164w@locutus.ofB.ORG>

abigail@fnx.com (Abigail) writes:

>>> I'm not going to start writing 1/2/2000 when 1/2/00 will work just
>>> fine to indicate the second day of the first month of the closest year
>>> ending in 00.
>>
>> is that Feb 1 or Jan 2?
>
> That's a silly argument.

it a tangential argument, but it's far from silly.

> 8 digit dates don't magically solve the US vs rest-of-the-world
> ambiguity.

if they're in ISO yyyymmdd format, they do.

> Many of the y2k problems have to do with how people often write dates.
> Using 2 digit years is very common. 

yes; but storing them as 2 digit dates is the crux of the problem.  not
inputting them (with an implied window) or printing them.

> Think about it. If you make an appointment to meet someone for dinner,
> would you make that appointment for '20h00 March 2, 1999 A.D.', or use
> something less cumbersome?

I leave that to my wife; I'm far too likely to forget.  :-)

(actually, :-( would probably be more appropriate...)
-- 
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 5092
**************************************

home help back first fref pref prev next nref lref last post