in reply to interpolation OPEN white spaces
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: interpolation OPEN white spaces
by choroba (Cardinal) on Jan 20, 2016 at 10:32 UTC | |
by Anonymous Monk on Jan 20, 2016 at 10:41 UTC | |
by choroba (Cardinal) on Jan 20, 2016 at 10:45 UTC | |
|
Re^2: interpolation OPEN white spaces
by welleozean (Novice) on Jan 20, 2016 at 09:03 UTC |