So I'm new to Perl, and somewhat new to programming. I see the power of Perl and how it can save me hours and hours of work. I've been trying to write some code but, I'm having trouble getting started. I have some searchable PDF files containing some structured information from a database I've been able to extract. The info is broken up nicely and I can split it order by order. My problem is that each order has different number of invoices associated with it. What I need to do is extract information from each order, then extract information from each invoice, then print it out to a spreadsheet. Here's a sample of how my data is structured:
Orders Number 1
... some stuff...
_________
Class: Invoice 1
...some stuff...
__________
Payment Detail - Payment ID 1
...some stuff...
_________
Orders Number 2
... some stuff...
________
Class: Invoice 1
some stuff...
___________
Payment Detail - Payment ID 1
...some stuff...
Payment Detail - Payment ID 2
...some stuff...
Payment Detail - Payment ID 3
...some stuff...
________
If anyone can help, it would be greatly appreciated.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.