an_ordinary_man has asked for the wisdom of the Perl Monks concerning the following question:
Please tell me how can I read the whole file line by line (if possible).open (PDFTYPELOG, "+>pdftype.txt") or die "cannot open file errorl +og.txt for writing : $!"; open (FILE_HANDLE, "D:\\MyScripts\\Social008-017.pdf") or die "can +not Social008-017.pdf for reading : $!"; while ($LineContent = <FILE_HANDLE>) { print PDFTYPELOG ($LineContent); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Read PDF files & do regex through Perl.
by rjray (Chaplain) on Feb 11, 2002 at 23:47 UTC | |
|
Re: Read PDF files & do regex through Perl.
by beebware (Pilgrim) on Feb 11, 2002 at 23:48 UTC | |
|
Re: Read PDF files & do regex through Perl.
by YuckFoo (Abbot) on Feb 12, 2002 at 02:53 UTC | |
|
Re: Read PDF files & do regex through Perl.
by aj (Initiate) on Feb 12, 2002 at 10:24 UTC |