in reply to Re: Warning for "unused sub declarations"?
in thread Warning for "unused sub declarations"?

But then your argument is just as valid for the annoying warning about a possible typo when using a package variable only once. Who says, I don't do advanced things behind-the-scenes then?

So if Perl warns me in this case, why not when declaring and failing to define a subroutine?

Paul

  • Comment on Re^2: Warning for "unused sub declarations"?

Replies are listed 'Best First'.
Re^3: Warning for "unused sub declarations"?
by brian_d_foy (Abbot) on May 19, 2005 at 21:10 UTC

    I don't like that "variable used once" either. If I've declared a variable so that use strict doesn't complain, but I only use it once, I don't want to see a warning. I've seen a lot of code that uses a variable in void context just to get around that warning.

    --
    brian d foy <brian@stonehenge.com>