welleozean has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks
It is surely a stupid error I'm doing, but I can't let the following work if $TextID contains white spaces. I see the logic why it is not working, but I'm havng problems solving this interpolation issue. Thank you
open (FILE, "files/pdftotext $path_folder/$TextID - |"); $text = do { local($/); <FILE> }; close FILE;
pdftotext is a PDF to Text converter (.exe) and I want the content of the text read by this tool in my variable $text for further processing. It works perfectly if the file name cntained in $TextID contains no spaces
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: interpolation OPEN white spaces
by Corion (Patriarch) on Jan 20, 2016 at 08:51 UTC | |
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 | |
by welleozean (Novice) on Jan 20, 2016 at 09:03 UTC | |
|
Re: interpolation OPEN white spaces
by Anonymous Monk on Jan 20, 2016 at 09:19 UTC | |
|
Re: interpolation OPEN white spaces
by RonW (Parson) on Jan 21, 2016 at 18:55 UTC |