Hello,

I am currently struggling with this project.  I cannot even decide on the
best way to implement it, let alone start writing the code.

I have a set of tables that look similar to what I have pasted below:


(See attached file: page6.prn)    (See attached file: page7.prn)

I am trying to organize the contents of these two files, so allow allows
users to query the files.

So a user can request the value of
"Domestic nonfinancial sectors", "Total", "1972"

which should then print out 10.0


The long term is to convert files of this structure to a "screen readable
HTML" format (508 compliant).

QUESTIONS:
1./ What is the best approach to implement this.  Also are there any
Perl-based programs that can be fine-tuned for this purpose?

2./  Can anyone offer to share a code he/she has written?

Any pointers will be very much appreciated.


PS:  My initial plan is to parse the contents of these files into a Perl
DBI database, which could then be queried.


===================================================================================

CONTENTS of page6.prn and page7.prn:
===================================

6         Z.1, March 4, 2004
_____________________________________________________________________________________________
D.1 Debt Growth by Sector\203^G\202\201\205^K 1
In percent; quarterly figures are seasonally adjusted annual rates
---------------------------------------------------------------------------------------------

                   -----------------------------Domestic nonfinancial
sectors----------------

-----------------------------Nonfederal----------------
                                                  -------Households--------
----Business----
                           Federal      Total              Home    Consumer
                   Total  government  nonfederal  Total  mortgage   credit
Total  Corporate
_____________________________________________________________________________________________

1969                 7.2        -1.1         9.7    7.7       7.0       8.3
11.6       11.4
1970                 6.9         4.2         7.6    4.4       4.4       3.4
10.3       12.9
1971                 9.5         8.3         9.8    9.2       8.5      11.7
10.1        7.8
1972                10.0         4.6        11.4   11.3      11.2      13.1
12.5        9.9
1973                10.7         2.0        12.9   12.4      11.7      13.3
14.7       17.5
1974                 9.2         3.4        10.5    8.8       9.7       4.6
13.0       11.5
_____________________________________________________________________________________________




Z.1, March 4, 2003
7
_____________________________________________________________________________________________

F.206 Money Market Mutual Fund Shares
Billions of dollars; quarterly figures are seasonally adjusted annual rates
_____________________________________________________________________________________________

                                                  2002    2003
-----2002-----  -2003-
                                                                   Q3
Q4      Q1
_____________________________________________________________________________________________

 1  FA634000005      Net issues                   -16.8  -207.8  -124.0
201.5  -394.2     1

 2  FA634000005      Net purchases                -16.8  -207.8  -124.0
201.5  -394.2     2

 3  FA153034005        Household sector           -40.2   -90.2    82.1
-164.0  -185.3     3
 4  FA103034003        Nonfinancial corporate bu   26.9   -52.7   -47.6
163.5   -38.5     4
 5  FA113034003        Nonfarm noncorporate busi    2.3    -8.2    -6.6
14.9    -5.5     5

 6  FA603034003        Bank personal trusts and     1.3    -9.2     1.3
1.3    -9.2     6
 7  FA543034003        Life insurance companies   -13.5    -8.3   -55.8
7.4   -28.2     7
 8  FA573034003        Private pension funds        2.8     2.9     2.8
2.8     2.9     8
 9  FA503034003        Funding corporations         3.6   -42.1  -100.3
175.5  -130.3     9
_____________________________________________________________________________________________



_______

William

Attachment: page6.prn
Description: Binary data

Attachment: page7.prn
Description: Binary data

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Reply via email to