http://www.perlmonks.org?node_id=1021952


in reply to Re: Name "main::a" used only once: possible typo (limitations of "sort" like functions)
in thread Name "main::a" used only once: possible typo

LanX, what I don't understand is why this warning, and the way to deal with it by the user of the module is not mentioned in the documentation as a limitation of perl/the module.

If the situation I described is real, then I assume many people bump into it and many people think they are doing something wrong.

So unless the code I wrote has the flaw, it would IMHO better to warn the user about the warning.

Replies are listed 'Best First'.
Re^3: Name "main::a" used only once: possible typo (limitations of "sort" like functions)
by LanX (Saint) on Mar 06, 2013 at 09:42 UTC
    > LanX, what I don't understand is why this warning, and the way to deal with it by the user of the module is not mentioned in the documentation as a limitation of perl/the module.

    I can only suppose that the problems are so overwhelming, that the authors don't know how to describe them.

    Cheers Rolf