This is weird. Are you certain that $SourceRoot is valid? The following works for me:
perl -wle "open($hProcess, 'dir Q:\\ 2>&1 |'); print for <$hProcess>"
Maybe $SourceRoot contains whitespace but is not quoted properly for the shell?</c>
In reply to Re: Opening pipe : no such file or directory
by Corion
in thread Opening pipe : no such file or directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |