in reply to Windows "Bad File Descriptor" problem

Hi HuckinFappy,

Very simple -- you want to concatenate the strings instead:

my $_retVal = system $ENV{ ComSpec }. '/c'. $_fullCmd ;

I think your mistake was that you're used to printing strings that way (ie. by separating arguments with commas), but for system, of course, you need a concatenated string.

Update:  After I thought about that for a minute, I realized it shouldn't make a difference.  But of course someone else had already beaten me to that conclusion.  Please ignore my erroneous advice above, and give your ++ votes to runrig instead.  :-(


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Replies are listed 'Best First'.
Re^2: Windows "Bad File Descriptor" problem
by runrig (Abbot) on Sep 26, 2006 at 17:06 UTC
    If you read the docs for system, you'll see that system LIST is fine.