Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!rufus!singer@ibm.com From: singer@ibm.com (David Singer) Newsgroups: comp.lang.perl Subject: -T and named pipes Summary: It's either a bug or a novice's mistake! Message-ID: <521@rufus.UUCP> Date: 17 Feb 91 04:13:43 GMT Sender: news@rufus.UUCP Reply-To: singer@ibm.com (David Singer) Organization: IBM Almaden Research Center Lines: 12 Expires: Sender: Followup-To: I just got The Book and a copy of Perl and typed in the "tlist" script on page 21. It hung. After a lot of head-scratching, I finally discovered that I had a named pipe in my home directory, and that the -T test was waiting for someone to write into the pipe. It seems that -T and -B should return "false" on a named pipe without trying to read it. -- David Singer -- Internet: singer@ibm.com BITNET: SINGER at ALMADEN Voice: (408) 927-2509 Fax: (408) 927-4073 (amusing disclaimer du jour goes here)