First I generally echo
Corion and
Jeffa's comments, but of course that doesn't help you with the immediate legacy problem you are faced with. Based upon some cursory analysis of the posted material, I would guess the error lies in the
printheader routine; this routine either lies in another file or has been truncated from this one. Can you post a fresh node that contains this subroutine?
I note that your error arises in the context of an eval. The only posted eval could not give rise to the fatal condition you posted, so it's coming from some unposted code. I suspect someone is doing a bait-and-switch with autogeneration of subroutines, but I can't be sure without seeing where it's coming from. Perhaps if you grep your scripts for the words sub printheader, though they might be doing the name assignment to the symbol table directly ($::{printheader} = ...).
Regardless, it feels like someone has dumped too much cleverness on your lap.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
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.