From owner-freebsd-questions Wed Sep 15 18:31:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc04.worldnet.att.net (mtiwmhc04.worldnet.att.net [204.127.131.39]) by hub.freebsd.org (Postfix) with ESMTP id 0B9A514F67 for ; Wed, 15 Sep 1999 18:31:21 -0700 (PDT) (envelope-from ugen@xonix.com) Received: from xonix.com ([12.79.201.93]) by mtiwmhc04.worldnet.att.net (InterMail v03.02.07.07 118-134) with ESMTP id <19990916013120.WAOQ1503@xonix.com> for ; Thu, 16 Sep 1999 01:31:20 +0000 Message-ID: <37E049FE.20AAFEC0@xonix.com> Date: Wed, 15 Sep 1999 21:38:06 -0400 From: Ugen Antsilevitch X-Mailer: Mozilla 4.51 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: questions@freebsd.org Subject: Perl question... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am thinking here on a small perl problem and i can't find any better forum then this one. PerlMongers don't count since they don't discuss anything but their social lives or lack thereof. Anyway, how do i cleanly implement simultaneous input from number of files using select (or anything else) and yet not using sysopen? I have to use regular open since those files are all (or part) other processes outputs | to perl script. Now, i guess if i just open it and use select - it will indicate when data available, so i will read one line? But this is buffered input so more data can be read, so much in fact that nothing will be left in the actual file descriptor. Next select will block and then show no data available. On the other hand i can't continue reading lines since i might block on that? Looks like catch 22 to me... And yes, i know it's a wrong forum.. --Ugen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message