This might have been previously found, but very interesting to know that the compilation carried out by Perl through the perl -c is non-traditional. In C, compilation would throw out all the syntax errors at once since the compiler would read through the entire code.
Interesting to discover that Perl compilation / parse tree building is line by line, therefore, on a 100 line program, if an error was encountered on line 10, the message thrown out by the compiler is:
failed--compilation aborted at MyModule.pm line 10
Therefore, one must not assume that line 10 was the only error that exists in the Perl module. Once the error is fixed on line 10, be prepared to see more subsequent syntax errors, if they exist.
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.