Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
There is a non-Perl-program pdftohtml to convert pdf to html (and I want to convert that hereafter to txt).
I can do that like this:
system "pdftohtml x.pdf, x.html"; system "myPerlPrg.pl x.html x.txt";not very elegant :-(
.. system "pdftohtml x.pdf |"; # now read this pipe | (???)Or to to pipe the output of pdftohtml directly to another Perl-prg:
system "pdftohtml x.pdf | myPrg.pl"but how do I know about and open this pipe within myPrg.pl? I don't find it in @ARGV, correct?
Thanks in advance,
carl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: open a pipe from system..
by Tanktalus (Canon) on May 01, 2005 at 15:26 UTC | |
by Anonymous Monk on May 01, 2005 at 15:36 UTC | |
by Anonymous Monk on May 01, 2005 at 15:57 UTC |