One technique I sometimes use to comment out a bunch of Perl lines is to put in some temporary POD directives.
=Any header..lines...=cut Start the "=" in column 1. Perl figures that the included lines are "Plain Old Documentation" and Perl doesn't compile them. C has a multi-line comment syntax. Perl doesn't, but this is a good substitute.
I also recommend just moving an __END__ statement around in the code.
Everybody here has had some kind of syntax problem that at one time stumped them for awhile. This is a normal part of software development. I would argue to anybody who claims that has never happened: a) you are lying or b) you don't have enough experience.
I think just last week, I had a really bizarre looking error that I traced back to a ":" instead of a ";" at the end of a "use" statement. It didn't take long for me to figure out the problem. But yes, an error 20 lines later can and does happen. I've seen that in every HLL that I've used.
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.