awk 'NR==314{ print }' < script.pl will isolate the faulty line - it might have an unprintable character hiding in which case delete and retype that line.

After that for runtime errors or unexpected results, try using perl -d to run in debug mode and then "l" repeatedly until you see the numbered lines of the area of interest. b <line-number> to set a break point. r to resume execution. At the breakpoint x <expression> will show the value e.g. of $value - this can be employed before and after suspect statements in the code. w <variable> sets a watchpoint on a variable - execution is interrupted back to the debug prompt if its value changes. B * to remove all breakpoints. W * to remove all watches on variables. Also h for help and q for quit.

One world, one people


In reply to Re: Bad name after noimport error by anonymized user 468275
in thread Bad name after noimport error by burningredmoon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.