in reply to Re: capturing STDOUT
in thread capturing STDOUT
I can't seem to get this to work. I have the following code, but on my linux/perl5.6.0 system, strace says it is blocking on the read.
Any suggestions?#!/usr/bin/perl -w use strict; my $stuff; { pipe(READ,WRITE); local *STDOUT=*WRITE; print "Into the pipe\n"; local $/; $stuff = <READ>; } print "Pipe has: $stuff";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: capturing STDOUT
by Rhandom (Curate) on Apr 30, 2001 at 18:12 UTC |
In Section
Seekers of Perl Wisdom