To make sure I understand, you somewhat recommend using
use strict; ?
In all seriousness, I appreciate the suggestions and the pointer to the tutorial. I have started going through it and, really enjoy the way it is written.
I have no delusions about the strength of my code. While I have written many small LAMP applications (mostly but not all, using PHP), I am (obviously) not a programmer.
In the past I have had very good luck, learning (figuring out is a more accurate term) on the fly from the books I have on my shelf, code snippets I can find on the web and, in this case, a dose of pod2html. Most of the time I can mash them all together, make any specific changes I want, and have a working program that does what I want it to. In this case however, I seem to be shut out. My lack of real programming knowledge may have caught up to me.
I know that the problem is not with the logic of the program (even though that could no doubt be improved) but with my attempts to call the available reports. I have placed in my main loop, a print statement that prints $body and $bounce (sounds like a shampoo commercial). The $body prints just fine (telling me that the file opens, is read and is parsed correctly) and, although all I see is a hash reference, $bounce updates as the loop runs so I know the data is getting fed into the module and it is accepting it.
I am confident that I can figure out the last part, how to define $report so that it contains the information necessary to call $report->get('XYZ');
I am going to go through the module code and the tutorial more tonight to see what I can turn up.
Thanks again for the pointers;
James
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.