well, i'm guessing, from the error msg that you got that you have:
Too many files specified

what is in $cmd?
are you sure it's a command NT or Cygwin understand?
what happens if you just run the $cmd on a prompt?
why don't you check the return value of open?
if it fails, what's in $! ?

in short, we'll need a bit more information to help you out, but try the
above things first...

hth,
jos



----- Original Message -----
From: "K.Srinivas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 08, 2002 9:50 AM
Subject: Filehandle problem


> Hi,
>
> I have been trying to run a piece of perl code in NT that I usually run in
> UNIX. I am showing the part of code where I am facing the problem.
> --------------------------------------------------------------------------
--
> ----
> open (CPP, "$cmd |");
>     while (<CPP>) {
> chomp();
> # Remove CR's from the input
> s/\r//g;
> --------------------------------------------------------------------------
--
> ----
>
> when the code attempts to go in the while loop it throws off an error:
> Too many files specified
>
> It exits the program after this. I am running this piece of script in
cygwin
> window.
> Can anyone point as to why this problem seem to be coming.
>
> K.srinivas
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to