Hi, Thank you for getting back to me on my problem. I tried inputting your code into a separate file and compiling and I keep getting the following error and I don't know what it means:
Global symbol "$tables_db_list_file" requires explicit package name a +t ./playFunction.pl line 15. Execution of ./playFunction.pl aborted due to compilation errors.
-I saw where you had in two parts of the program and I didn't know if it needed to be TWO different file handles or what. The way I have my program currently running is I call a file called counter15.pl that does lots of stuff (pulling SQL statements, performing various calculations and the SQL files that I separated the SQL statements into, pulling database joins etc.) The last thing I did in my program was I wrote code in which a file that contained a list of ONLY TABLES (not with DB name) was loaded. Then I parsed EACH of my SQL files to see if any instances of the tables were in any of the SQL files. If they were, then I just printed the table name that was found. NOW, I have a list of all the tables names in a separate file called, tableUsed.txt and what I need is a list of table names ALONG WITH the database name. YES, to answer your question in the DB & table name file, the DB & table name are separated by a (space). I just want to eventually have a FINAL file that contains a listing of the databases and table names in which I will upload into an excel spreadsheet. I am VERY new to PERL, infact they made me learn it in a week, therefore I am no expert by any means but the code you have given me should work but again I have that error and I don't know why. Please get back to me when you have time. Thank you so very much for your help. Dan

In reply to Re^2: comparing 2 files by dhudnall
in thread comparing 2 files by dhudnall

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.