Not able to write using Open2



Here is my complete code , I am trying to call a file, and then I need
to pass cirtain inputes which script asks,
I am opening with open2 and then trying to write with WRITE, I am able
to read but cannot write I mean I cannot send the input to WRITE handle
what could be wrong
TIA

use warnings;
use strict;
use IPC::Open2;
use Cwd;

my $currentdir=cwd();
my $pid;
chdir ("/source/internal/") or die "Cannot Change Directory";
$pid = open2 (\*READ,\*MY_WRITE,"BuildInternal.pl") or die;

while (<READ>)
{
print $_;
}

print MY_WRITE\n";

while (<READ>)
{
print $_;
}

close MY_WRITE;
close READ;

--

.



Relevant Pages

  • Re: Newbie Help (WinXP)
    ... Is this because your script doesn't know where it is? ... If you're trying something as silly as script.pl *.html then you need ... files or if they are not opening or what.. ... Prev by Date: ...
    (perl.beginners)
  • Re: Why does database not open to the last record visited
    ... Marc-Andre it sounds like yours is doing the same thing as mine. ... I'm not opening the file from a machine that is not the file's host, ... install FMP; or, is this really something innate with FMP8. ... rather than having to have a script and relationship in every database ...
    (comp.databases.filemaker)
  • [SNS Advisory No.54] Active! mail Executing the Script upon the Opening of a Mail Message Vulnerabil
    ... SNS Advisory No.54 ... mail Executing the Script upon the Opening of a Mail Message Vulnerability ... LAC Co.,Ltd. ...
    (Bugtraq)
  • Re: [kde] slow script execution in konqueror
    ... executing the same script from a terminal. ... While opening a file by clicking on its icon takes 6-7 seconds, ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)
  • Re: Read from keyboard
    ... > means opening in it the designated application. ... The script I showed you definitely runs. ... I'm clueless as to why I get the error message of a nonexistent pipe. ... I get the expected output of: ...
    (comp.lang.perl.misc)