On Jan 7, 2008 6:50 PM, garhone <[EMAIL PROTECTED]> wrote: > On Jan 7, 5:07 pm, [EMAIL PROTECTED] (Garhone) wrote: > > Hi, > > > > I'm looking at someone else's code. It goes like this: > > > > my $condfile="myfile.txt"; > > open(COND, "|compile.pr > $condfile") or die "Can't fork: $!"; > > > > What is happening with this filehandle, particularly, what does the > > "|" (pipe) facilitate in this case? > > > > Thanks in advance, > > C > > > Apologies, but it was pointed out to me that an explanation can be > found in the perldoc for open. > I guess I should have reword my question: > > I'm having trouble understanding the passage in the perldoc: > "If the filename begins with '|', the filename is interpreted as a > command to which output is to be piped". > In the case of the above code, what is happening? > What is the "output" that is being "piped" to "|compile.pr..."? > Thanks, > > C
Whatever is written to the filehandle. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/