frequently, many people will post something similar to the following in SoPW :
I am having problems with my script, foo.pl.
I try to run it, but I get "error : broken widget, line 54"
What does this mean? I'm sure I've initialized $widget properly. Please help!
my $widget;
...
etc.
but I don't recollect ever seeing "the lines posted start at 51, stop at 60, then resume at 90 on the next snippet", or somesuch. This occasionally makes it difficult to troubleshoot what's going on.
THEREFORE
I would like to suggest adding an ATTRIBUTE to the honorable <code> tag, startline. When the startline attribute is present,e.g., <code startline=51>..., the output would be similar to the code catacombs :
51 : my $widget;
52 : ...
53 : ...
54 : my $widget->break(horribly);
55 : ...
and so on.
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.