in reply to No warning when assiging to a variable

What you are asking for is a “perl lint,” which catches the stuff that is “technically legal but probably not what you wanted to do,” and I do not readily know of one.   Is there one?

Q:  Why do computer programmers have flat heads?

A:  (Slap!)   “D-oh!”

Replies are listed 'Best First'.
Re^2: No warning when assiging to a variable
by GotToBTru (Prior) on Aug 14, 2013 at 21:19 UTC
    Perl Critic, I suppose, is supposed to be the perl lint. It says, on brutal mode:

    No package-scoped "$VERSION" variable found
    Return value of flagged function ignored - print
    Return value of flagged function ignored - print