Hello All,

First of all: Perl=5.005_02 (I know its old), SunOS 5.6 Having some problems using the B::Lint module and have done my google searching with no good results. Here are my 2 problems:

1. I want to lint with all options except for undefined-subs. I thought this would work:
perl -MO=Lint,all,-undefined-subs foo.pl
but it just gives me the error
No such check: _undefined_subs
I have been able to do this by including all of the Lint options that I want on in my Perl command.
perl -MO=Lint,context,implicit-read,implicit-write,dollar-underscore,private-names,regexp-variables foo.pl
So, I must be doing something wrong here.

2. My second issue, is that because I am using autoloaded functions in my Perl module bar.pm, I want to include my bar package in the linting process by using the -u Package non-lint option. So I tried:
perl -MO=Lint,all,-ubar (and -u bar, -ubar.pm, -u bar.pm also tried without the ",all")
Unless my subs are Lint free (I put lint warnings in one), its not working as I expected.
I used lint to check bar.pm alone with
perl -MO=Lint,all bar.pm
and it did pick up an error in main but I don't think that it checked the subs.

Anyway, this is what I have. I hope someone out there can give me some better direction on these.

Thanks, Shannon

In reply to B::Lint Usage Problems by skerr1

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.