in reply to Spurious warning from require'd package

I still don't fully understand, but I got rid of my warning...
Writing helps reading as usual.
I noticed that the line I needed my require for was the definition of an object which was itself not used.
So, I could remove both, and the warning went away.

I am still interested in explanations and advices, though.

Marc

  • Comment on Re: Spurious warning from require'd package

Replies are listed 'Best First'.
Re^2: Spurious warning from require'd package
by Anonymous Monk on May 07, 2009 at 01:32 UTC
    splain
    echo Name "ClearCase::Argv" used only once: possible typo at /usr/lib/ +perl5/site_perl/5.10/Argv.pm line 308. |splain Name "ClearCase::Argv" used only once: possible typo at /usr/lib/perl5/site_perl/5.10/Argv.pm line 308. (#1) (W once) Typographical errors often show up as unique variable nam +es. If you had a good reason for having a unique name, then just menti +on it again somehow to suppress the message. The our declaration is provided for this purpose. NOTE: This warning detects symbols that have been used only once s +o $c, @c, %c, *c, &c, sub c{}, c(), and c (the filehandle or format) are con +sidered the same; if a program uses $c only once but also uses any of the +others it will not trigger this warning.
      Thanks.
      Somehow, the name that was reported as used only once should not have been "ClearCase::Argv" (the class name), but rather this of the object of that type, which was created and then not used anymore (after I had removed some code).

      But otherwise, the warning was useful and spotted a real, if minor, issue.

      Marc