The list form of open for reading from processes is not really supported by Windows. Personally, I use the string form with whitespace properly quoted for Windows:
my $cmd = qq(files\\pdftotext "$path_folder/$TextID" |); my $pid = open (FILE, $cmd) or die "Couldn't spawn [$cmd]: $! / $?"; $text = do { local($/); <FILE> }; close FILE;
In reply to Re: interpolation OPEN white spaces
by Corion
in thread interpolation OPEN white spaces
by welleozean
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |