Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!csus.edu!beach.csulb.edu!nic.csu.net!koko.csustan.edu!petunia!zeus!claudius From: claudius@zeus.calpoly.edu (King_Claudius) Newsgroups: comp.lang.perl Subject: Re: Directory Routines in Perl under Xenix386 Keywords: opendir perl ldir Message-ID: <1991Jun18.185319.152408@zeus.calpoly.edu> Date: 18 Jun 91 18:53:19 GMT References: <118@embassy.nsi.com> Organization: California Polytechnic University, San Luis Obispo Lines: 27 lance@embassy.nsi.com (Lance N. Antrim) writes: >The problem is in the directory routines. I discovered it when I tried >to use the opendir, readdir and closedir routines in the example in the >Camel book using 'complete.pl. I found I got a list of no files for the >complete routine to work on. On further examination I found that I was >getting information from the reading of the directory, but not a list of >separated file names. Wow...I guess I'm not alone...I've compiled it for our AIX sites: a mondo-IBM big blue 3090 and a bunch of 386 machines. Basically I get no output from readdir, but no errors from opendir. I've written C code that does the same basic thing and our functions work fine from the C side of the world. [I'm working on following {ick!} the code in doio.c, where it all happens] >In skimming the Xenix manuals it apears that I need to add 'ldir' to my >library list and possibly make some changes in the appropriate Perl >code. Before going further I wanted to see if anyone else has compiled >Perl 4.003 under Xenix386 and tested the directory routines. If so, do >they work as they are supposed to? If not, has anyone made the changes >necessary to get them working? Hmm...can't help you with Xenix, but I don't think it's Xenix's fault. -- claudius@hermes.calpoly.edu --- King_Claudius ---