develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991119.002] Suggestion for a new warning

Thread Previous | Thread Next
Tom Christiansen
November 19, 1999 08:02
Re: [ID 19991119.002] Suggestion for a new warning
Message ID:
>But otherwise, it's great idea, right?  :-)

Yes, actually.

>Hmm, I can't see it.  Never mind, and thanks for the ultra-prompt
>reply!  (BTW., was perlbug a reasonable address to send this to?)

No, you have a good point.  It's exceedingly annoying to 
have a program die halfway through due to a seldom traversed
codepath that includes a call to the lenght() function.  Some
pragma could be arranged to help this.

    no autoload;
    use warnings 'undefuncalls';

or some such.

That doesn't solve the issue for method calls, and it is compile-time only 
warnings.  I'm not sure whether this should be foisted off into 
B::Lint as it is now.   Did you know about that?  This:

    perl -MO=Lint,-context,-undefined-subs myperlprogram

might make you happy.  Then again, that's hardly a user-friendly
front end.  What ever happened to the idea of a plint program
that did the icky work for you, akin to perlcc?


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About