Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!ruuinf!henkp From: henkp@ruuinf.cs.ruu.nl (Henk P. Penning) Newsgroups: comp.lang.perl Subject: bug in pipe() ? Message-ID: <3210@ruuinf.cs.ruu.nl> Date: 4 May 90 13:52:49 GMT Organization: Utrecht University, Dept. of CS Lines: 20 The program ----- $a='aa' ; $b = 'bb' ; pipe($a,$b) || die "can't create pipe $a/$b\n" ; close($a) || die "can't close $a\n" ; ----- outputs: can't close aa With 'pipe(aa,$b)' instead of 'pipe($a,$b)' no output appears. ^ ^ It seems that pipe() doesn't handle expressions yielding FILEHANDLEs correctly. This makes the puzzle posted by Alan Martello (reading AND writing to a process) more difficult. -- Henk P. Penning, Dept of Computer Science, Utrecht University. Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands. Telephone: +31-30-534106 e-mail : henkp@cs.ruu.nl (uucp to hp4nl!ruuinf!henkp)