in reply to Re: Warnings for unused subs
in thread Warnings for unused subs

You're right, there are many ways to break something like this, but I was just thinking of something for the common case: sub foo appears, but a call to foo(...) doesn't appear in the same package. That's what I was trying to say with "it doesn't have to be bulletproof".

I guess an analogy would be perltidy. It can be thrown off without trying very hard, but in the common cases it can be helpful.

Replies are listed 'Best First'.
Re: Warnings for unused subs
by Abigail-II (Bishop) on Jul 25, 2002 at 15:57 UTC
    Given that both OO modules and exporting modules are very common, the case of having sub foo appear in a package without a call to it is indeed common. It's also not an unused sub.

    Abigail