First question: what do you mean by "it broke"? Does it give an error message, or just give incorrect behaviour?
By default, perl will include a filename and line number on fatal errors unless they terminate in a newline. You can also modify the script to make a fatal error give a full stack trace in most cases, by adding something like this just after the shebang line:
BEGIN { use Carp; $SIG{__DIE__} = sub { Carp::confess(@_) } }
If the script is completing without a fatal error, but giving incorrect behaviour, you can insert this just after the shebang line to get a list of the paths to all modules that were loaded up to the point the script finishes:
END { print for values %INC }
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.