Dearest Perl Monks,

I have a question regarding the possibilities of perl that I'm desperately seeking to answer... The situation is as follows:

Currently I'm writing my Master's thesis in which I'm planning on using Perl to analyze certain filings and extract information from it. We're talking about a couple of thousand of them, making doing it by hand not feasible. In every one of these filings there is a certain recommendation that is given on a proposal (as in: he/she recommends to vote for/against the proposal). This recommendation is the piece of information I need, and thus I want to extract this with Perl from the filings, combining the recommendation with the issued proposal in order to successfully continue my research. My questions thus are: is it possible to do this with Perl? And, if possible, how difficult would it be to create a code that does exactly that? Basically I would need to extract the recommendation, and the proposal he/she recommends on in a way so that I can use it for further statistical analysis in e.g. Stata.

I wrote it as concise as possible, but I hope it's complete enough:).

I hope you splendid monks have the answer to all my questions! Thanks in advance:).

UPDATE:

Here a link to an example filing: Filing example

The filing originally is in .html, however I downloaded a couple of thousands with a script ending up with .txt files which have all the html code in it around the text, which makes it less readable; at least to the human eye.


In reply to Perl Possibilities by Gideau

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.