Clive maybe has a point, an error message would help a lot.
What I'd do in your situation is put a load of warn statements in such that you can track exactly where the script is and when, and what variables are set to at key points throughout the program.
If you think that the problem is with one of those three subs, then that's a good place to start. Ensure something's not getting overridden, that if..then..else and the like are working correctly.
If nothing else, that'll give you a whole load of debug data, and hopefully an elusive error, that'll help you narrow the problem down and come back with something a little clearer.
Hope that helps a little ..
--Foxcub
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.