open 2 question

1999-12-18 Thread dreamwvr
hi, i am writing a program using perl and its open2 function as opposed to the open functions as this allows me to both read and write. but since i am only familiar with.. open (MYSTDIN, "myprog args|"); or open(MYSTDOUT, "| myprog args"); i am trying to get my mind around the concept of ope

Re: open 2 question

1999-12-19 Thread Eric L. Brine
> i am trying to get my mind around the concept of open2 which is.. > open2( /*MYSTDIN, /*MYSTDOUT, "myprog"); > how do i simply read to the program and write to the program.. > is it just... > print MYSTDIN, "my data\n"; > and then a .. > while() { > ... > } I think you will