Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: When -w and use strict aren't enough...

by dada (Chaplain)
on Nov 06, 2003 at 07:18 UTC ( [id://305031]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to When -w and use strict aren't enough...

RMGir, meet B::Xref. B::Xref, meet RMGir :-)

I've published elsewhere a little script which parses the output of B::Xref to catch unused subs. if you just change the last four lines to:

foreach my $sub (keys %subused) { next if exists $subdef{ $sub }; print "UNDEFINED SUB: $subused{ $sub } $sub\n"; }
you have something that will catch your handelNewYear error :-)

cheers,
Aldo

King of Laziness, Wizard of Impatience, Lord of Hubris

Replies are listed 'Best First'.
Re: Re: When -w and use strict aren't enough...
by RMGir (Prior) on Nov 06, 2003 at 07:29 UTC
    Thanks!

    I think both the unused and undeclared options look pretty useful.

    Your post is a reply to Warnings for unused subs, an interesting thred I'd missed.


    Mike

    PS: I liked that side trip to Re: Re: ESMTP, linefeed and <CRLF> before you fixed your link; it made me wonder if I'd accidentally gotten decaf this morning :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://305031]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.