Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!telxon!ping!gorpong From: gorpong@ping.uucp (Gordon C. Galligher) Newsgroups: comp.lang.perl Subject: DBM Problems in PL28 (Was Re: Tom Christiansen's man program ...) Keywords: perl pl28 man xenix Message-ID: <1990Sep6.124151.19657@ping.uucp> Date: 6 Sep 90 12:41:51 GMT References: <578@seer.UUCP> <26E5495D.7759@ics.uci.edu> Organization: The 23rd. Century Lines: 37 In article <26E5495D.7759@ics.uci.edu> nagel@wintermute.ics.uci.edu (Mark Nagel) writes: >$dbm00{some_key} fails for whatever (valid) key is used. I don't >think it is a bug in man, but a bug in dbm access under pl28. That would go along with a problem I am experiencing in PL28 on SCO UNIX. In order to get PERL to compile and begin the tests without core dumping I was forced to use the 'rcc' compiler (the standard distribution AT&T compiler, as opposed to 'cc' which is the Microsoft C compiler). Once I did that, I then attempted to test PL28 on the system. It failed io.dup test 2, and io.pipe test 6, and when it attempted to do op.dbm, it just hung. It is hanging on the loop: while (($key,$value) = each(h)) { $i++; } The dbm file does not exist, therefore this program just created it with the dbmopen() function. It is expecting that loop to exit the first time, but what really happens is it just hangs in that loop incrementing $i. This test did pass PL18. In fact, PL18 works just fine on this system, even using the MicroSoft C compiler. I am curious as to why I have had to go through all these hoops. (When using 'cc', it attempts to do test base.if, and segmentation fault/core dumps.) Is anyone else running SCO UNIX? Have you had any problems getting PERL PL28 to (1) compile, (2) pass the tests, (3) just plain work? It does look like a bug in PL28 with the dbm, but it could just be a problem with the way I have things set up. I have no idea. -- Gordon. -- Gordon C. Galligher 9127 Potter Rd. #2E Des. Plaines, Ill. 60016-4881 telxon!ping%gorpong@uunet.uu.net (not tested) (Is this even legal??) ...!uunet!telxon!ping!gorpong (tested) (And it works!) "It seems to me, Golan, that the advance of civilization is nothing but an exercise in the limiting of privacy." - Janov Pelorat -- _Foundation's Edge_