henkp@ruuinf.cs.ruu.nl (Henk P. Penning) (05/04/90)
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)