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

Re: [ID 19991119.002] Suggestion for a new warning

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
November 19, 1999 08:02
Subject:
Re: [ID 19991119.002] Suggestion for a new warning
Message ID:
199911191601.JAA05547@jhereg.perl.com
>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;
or
    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?

--tom

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About